diff options
Diffstat (limited to 'tools/scan_includes.c')
-rw-r--r-- | tools/scan_includes.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/scan_includes.c b/tools/scan_includes.c index a6351f7e7..78c0cf27e 100644 --- a/tools/scan_includes.c +++ b/tools/scan_includes.c @@ -9,8 +9,7 @@ void scan_file(const char *filename, bool strict) { FILE *f = fopen(filename, "rb"); if (!f) { if (strict) { - fprintf(stderr, "Could not open file \"%s\": %s\n", filename, strerror(errno)); - exit(1); + error_exit("Could not open file \"%s\": %s\n", filename, strerror(errno)); } else { return; } |