diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/serdi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/serdi.c b/src/serdi.c index ef7d72cb..939b63d0 100644 --- a/src/serdi.c +++ b/src/serdi.c @@ -15,6 +15,7 @@ */ #include <assert.h> +#include <errno.h> #include <stdlib.h> #include <string.h> @@ -165,7 +166,8 @@ main(int argc, char** argv) } in_fd = fopen((const char*)input, "r"); if (!in_fd) { - fprintf(stderr, "Failed to open file %s\n", input); + fprintf(stderr, "Error opening file %s (%s)\n", + input, strerror(errno)); return 1; } } |