changeset 80:5cefa59baa9d

Better error messages.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 02 Oct 2012 05:55:28 +0300
parents d6c2efa25aa4
children ba1987562a73
files ppl.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
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);