diff ppl.c @ 80:5cefa59baa9d

Better error messages.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 02 Oct 2012 05:55:28 +0300
parents 3b3908d28a4b
children 7a59611f9d4f
line wrap: on
line diff
--- a/ppl.c	Tue Oct 02 05:54:01 2012 +0300
+++ b/ppl.c	Tue Oct 02 05:55:28 2012 +0300
@@ -358,7 +358,7 @@
     
     if ((file = dmf_create_stdio(optFilename, "rb")) == NULL)
     {
-        dmError("Error opening file '%s', %d (%s)\n",
+        dmError("Error opening file '%s', %d: (%s)\n",
             optFilename, errno, strerror(errno));
         return 1;
     }
@@ -409,8 +409,8 @@
 
     if ((file = dmf_create_stdio(optFontFilename, "rb")) == NULL)
     {
-        dmError("Error opening input file '%s'. (%s)\n",
-            optFontFilename, strerror(errno));
+        dmError("Error opening font file '%s', %d: %s\n",
+            optFontFilename, errno, strerror(errno));
         goto error_exit;
     }
     SDL_Surface *fontbmap = dmLoadImage(file);