From 761aa8e99d30dc5c7e04360e2fa5f827dc1be5f0 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 28 May 2009 07:36:23 +0000 Subject: [PATCH] make sure the user is clearly notified when the datafiles could not be read git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1634 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- urjtag/ChangeLog | 3 +++ urjtag/src/tap/detect.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index 7a1f1ec9..17b32022 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -3,6 +3,9 @@ * configure.ac: improve svn rev look up by ignoring errors, unifying duplicated code, and support git-svn tree + * src/tap/detect.c: if the part could not be found because the data file + could not be opened, then log an obvious error message + 2009-05-24 Rutger Hofman * src/bus/avr32.c: fix uninitialized warning (Florian Fainelli) diff --git a/urjtag/src/tap/detect.c b/urjtag/src/tap/detect.c index c23a0bd1..1d70fc75 100644 --- a/urjtag/src/tap/detect.c +++ b/urjtag/src/tap/detect.c @@ -62,7 +62,8 @@ find_record (char *filename, urj_tap_register_t *key, struct id_record *idr) file = fopen (filename, "r"); if (!file) { - urj_error_IO_set ("Cannot open '%s'", filename); + urj_log (URJ_LOG_LEVEL_ERROR, _("Unable to open file '%s'\n"), filename); + urj_error_IO_set ("Unable to open file '%s'", filename); return 0; }