# HG changeset patch # User Matti Hamalainen # Date 1349146528 -10800 # Node ID 5cefa59baa9dc2491f0dae2dd0a4808f929679bc # Parent d6c2efa25aa4785e0c30c5bbe0040eeb170f132d Better error messages. diff -r d6c2efa25aa4 -r 5cefa59baa9d ppl.c --- 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);