From: Hugo Villeneuve Date: Sun, 24 Nov 2013 18:03:16 +0000 (-0500) Subject: Display filename in case of HEX file load error X-Git-Tag: v2.0.0~71 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=8c2d345bc712d950df521098e37b46b1688044b6;p=emu8051.git Display filename in case of HEX file load error --- diff --git a/src/hexfile.c b/src/hexfile.c index 57540bc..6411166 100644 --- a/src/hexfile.c +++ b/src/hexfile.c @@ -110,7 +110,7 @@ LoadHexFile(const char *filename) /* Trying to open the file. */ fp = fopen(filename, "r"); if (fp == NULL) { - perror(PACKAGE); + perror(filename); /*ErrorLocation(__FILE__, __LINE__);*/ exit(EXIT_FAILURE); }