Browse Source

Reduce log level of cupsRasterOpen failure

If cupsRasterOpen fails, the most likely cause is that some earlier
filter didn't produce any output. If we output an error-level message
in this situation, we'll likely displace some earlier, more useful
message by the other filter.
pull/17/head
Peter De Wachter 8 years ago
parent
commit
f1e0b2df54
  1. 2
      src/main.cc

2
src/main.cc

@ -158,7 +158,7 @@ int main(int argc, char *argv[]) {
ras = cupsRasterOpen(fd, CUPS_RASTER_READ);
if (!ras) {
fprintf(stderr, "ERROR: " PACKAGE ": Can't read raster data\n");
fprintf(stderr, "DEBUG: " PACKAGE ": Cannot read raster data. Most likely an earlier filter in the pipeline failed.\n");
return 1;
}

Loading…
Cancel
Save