From: James Zern Date: Fri, 6 Feb 2015 05:06:29 +0000 (-0800) Subject: vpxdec: correct file op error messages X-Git-Tag: v1.4.0~168^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b993f076ea3f4b270b97d8b3bf3210372e477e0;p=libvpx vpxdec: correct file op error messages - use fatal() consistently - correct wording in output file open failure message Change-Id: I4dafe03c6eece6df53375f72adf0d5964e211c9a --- diff --git a/vpxdec.c b/vpxdec.c index 310f4a059..f99d1e437 100644 --- a/vpxdec.c +++ b/vpxdec.c @@ -519,7 +519,7 @@ static FILE *open_outfile(const char *name) { } else { FILE *file = fopen(name, "wb"); if (!file) - fatal("Failed to output file %s", name); + fatal("Failed to open output file '%s'", name); return file; } } @@ -725,8 +725,7 @@ int main_loop(int argc, const char **argv_) { infile = strcmp(fn, "-") ? fopen(fn, "rb") : set_binary_mode(stdin); if (!infile) { - fprintf(stderr, "Failed to open file '%s'", strcmp(fn, "-") ? fn : "stdin"); - return EXIT_FAILURE; + fatal("Failed to open input file '%s'", strcmp(fn, "-") ? fn : "stdin"); } #if CONFIG_OS_SUPPORT /* Make sure we don't dump to the terminal, unless forced to with -o - */