]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - filter/rastertohp.c
Merge changes from CUPS 1.5svn-r9198.
[thirdparty/cups.git] / filter / rastertohp.c
index 059a2e01047a0e2bd00ac989567b85874d73f842..e39194f627ab4d07c40afff578307d97967cae9a 100644 (file)
@@ -756,6 +756,19 @@ main(int  argc,                            /* I - Number of command-line arguments */
   */
 
   ppd = ppdOpenFile(getenv("PPD"));
+  if (!ppd)
+  {
+    ppd_status_t       status;         /* PPD error */
+    int                        linenum;        /* Line number */
+
+    _cupsLangPrintf(stderr, _("ERROR: The PPD file could not be opened.\n"));
+
+    status = ppdLastError(&linenum);
+
+    fprintf(stderr, "DEBUG: %s on line %d.\n", ppdErrorString(status), linenum);
+
+    return (1);
+  }
 
   Setup();
 
@@ -852,7 +865,7 @@ main(int  argc,                             /* I - Number of command-line arguments */
 
   if (Page == 0)
   {
-    _cupsLangPuts(stderr, _("ERROR: No pages found\n"));
+    _cupsLangPuts(stderr, _("ERROR: No pages were found.\n"));
     return (1);
   }
   else