]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/grub-fstest.c (read_file): Report GRUB error if file opening
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 11 Apr 2011 05:40:53 +0000 (07:40 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 11 Apr 2011 05:40:53 +0000 (07:40 +0200)
failed.

ChangeLog
util/grub-fstest.c

index 46f683cb6a8dbe31addb7cd54ae2c7bb4d48a447..cbb77c14c45a592933ccd9b0b15c256bee1c4efe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * util/grub-fstest.c (read_file): Report GRUB error if file opening
+       failed.
+
 2011-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/kern/file.c (grub_file_open): Don't take into account the
index 2fcde4ab0e03ae61e809cdcf7dece10ba8dac26a..51c1a3a52a79132a210881277b884b3fe680e986 100644 (file)
@@ -111,7 +111,8 @@ read_file (char *pathname, int (*hook) (grub_off_t ofs, char *buf, int len))
   file = grub_file_open (pathname);
   if (!file)
     {
-      grub_util_error (_("cannot open file %s"), pathname);
+      grub_util_error (_("cannot open file %s:%s"), pathname,
+                      grub_errmsg);
       return;
     }