]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - filter/pstext.c
Merge changes from CUPS 1.5svn-r9567
[thirdparty/cups.git] / filter / pstext.c
index 2b38b3af751e7f2ec26f2432061ac8a0fd097335..cfd8f08bb934859e035c54d9e10d208923013404 100644 (file)
@@ -85,8 +85,10 @@ psTextEmbedFonts(ps_text_t *fonts)   /* I - Font data */
       fclose(fp);
     }
     else
-      fprintf(stderr, "DEBUG: Unable to open font file \"%s\" - %s\n",
-              filename, strerror(errno));
+    {
+      _cupsLangPrintError("ERROR", _("Unable to open print file"));
+      fprintf(stderr, "DEBUG: Unable to open \"%s\".\n", filename);
+    }
 
     puts("\n%%EndResource");
   }
@@ -245,6 +247,7 @@ psTextInitialize(void)
   else
   {
     _cupsLangPrintError("ERROR", _("Unable to open print file"));
+    fprintf(stderr, "DEBUG: Unable to open \"%s\".\n", filename);
     exit(1);
   }
 
@@ -261,6 +264,7 @@ psTextInitialize(void)
     */
 
     _cupsLangPrintError("ERROR", _("Unable to open print file"));
+    fprintf(stderr, "DEBUG: Unable to open \"%s\".\n", filename);
     exit(1);
   }