]> Untitled Git - emu8051.git/commitdiff
Display filename in case of HEX file load error
authorHugo Villeneuve <hugo@hugovil.com>
Sun, 24 Nov 2013 18:03:16 +0000 (13:03 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Mon, 2 Dec 2013 01:49:06 +0000 (20:49 -0500)
src/hexfile.c

index 57540bc4d9f91f4cef9199f40498870e5e3a6925..6411166c5e8e80d97225e865902dcb0d2ec3e43d 100644 (file)
@@ -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);
        }