From: msweet Date: Fri, 22 May 2015 16:26:29 +0000 (+0000) Subject: Log the filename that cannot be opened. X-Git-Tag: v2.2b1~291 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfa448ff847fe24a046fe590b43929b6c0aeff5b;p=thirdparty%2Fcups.git Log the filename that cannot be opened. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12654 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/filter/pstops.c b/filter/pstops.c index 1b57014e71..49c6e3c25e 100644 --- a/filter/pstops.c +++ b/filter/pstops.c @@ -265,7 +265,11 @@ main(int argc, /* I - Number of command-line args */ if ((fp = cupsFileOpen(argv[6], "r")) == NULL) { if (!JobCanceled) + { + fprintf(stderr, "DEBUG: Unable to open \"%s\".\n", argv[6]); _cupsLangPrintError("ERROR", _("Unable to open print file")); + } + return (1); } }