* util/grub-fstest.c (read_file): Report GRUB error if file opening

failed.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-04-11 07:40:53 +02:00
parent 9ee8d94faa
commit af869a4ab9
2 changed files with 7 additions and 1 deletions

View file

@ -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> 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/file.c (grub_file_open): Don't take into account the * grub-core/kern/file.c (grub_file_open): Don't take into account the

View file

@ -111,7 +111,8 @@ read_file (char *pathname, int (*hook) (grub_off_t ofs, char *buf, int len))
file = grub_file_open (pathname); file = grub_file_open (pathname);
if (!file) if (!file)
{ {
grub_util_error (_("cannot open file %s"), pathname); grub_util_error (_("cannot open file %s:%s"), pathname,
grub_errmsg);
return; return;
} }