summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/spkmodem_recv/spkmodem-recv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/spkmodem_recv/spkmodem-recv.c b/util/spkmodem_recv/spkmodem-recv.c
index 5fa98a76..eb372fda 100644
--- a/util/spkmodem_recv/spkmodem-recv.c
+++ b/util/spkmodem_recv/spkmodem-recv.c
@@ -47,9 +47,9 @@ main(int argc, char *argv[])
setvbuf(stdout, NULL, _IONBF, 0);
while (!feof(stdin))
handle_audio();
- if (errno)
- err(errno, "Unhandled error upon exit. Exit status is errno.");
- return 0;
+ if (errno && debug)
+ err(errno, "Unhandled error, errno %d", errno);
+ return errno;
}
void