* util/grub-fstest.c (read_file): Report GRUB error if file opening
failed.
This commit is contained in:
parent
9ee8d94faa
commit
af869a4ab9
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue