diff --git a/examples/dwebp.c b/examples/dwebp.c index 7cd6413d..a3bc0144 100644 --- a/examples/dwebp.c +++ b/examples/dwebp.c @@ -501,9 +501,9 @@ static int SaveOutput(const WebPDecBuffer* const buffer, } } else { if (fout != stdout) { - fprintf(stderr, "Error writing to stdout !!\n"); - } else { fprintf(stderr, "Error writing file %s !!\n", out_file); + } else { + fprintf(stderr, "Error writing to stdout !!\n"); } } return ok;