From 8c2d345bc712d950df521098e37b46b1688044b6 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Sun, 24 Nov 2013 13:03:16 -0500 Subject: [PATCH] Display filename in case of HEX file load error --- src/hexfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.20.1