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
master
Mike Frysinger 16 years ago
parent 09e4be3761
commit 761aa8e99d

@ -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 <rfhh>
* src/bus/avr32.c: fix uninitialized warning (Florian Fainelli)

@ -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;
}

Loading…
Cancel
Save