From 42b2a706bf071a47d20af08389d1ea3f917f2691 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Sun, 30 Oct 2011 13:18:22 +0100 Subject: [PATCH] * util/grub-fstest.c (cmd_cp): Clarify error message. (cmd_cmp): Likewise. --- ChangeLog | 5 +++++ util/grub-fstest.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 604a427c6..d8c4bf764 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-10-30 Vladimir Serbinenko + + * util/grub-fstest.c (cmd_cp): Clarify error message. + (cmd_cmp): Likewise. + 2011-10-30 Yves Blusseau * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs diff --git a/util/grub-fstest.c b/util/grub-fstest.c index 60889d05e..996d71c3a 100644 --- a/util/grub-fstest.c +++ b/util/grub-fstest.c @@ -182,7 +182,8 @@ cmd_cp (char *src, char *dest) ff = fopen (dest, "wb"); if (ff == NULL) { - grub_util_error (_("open error")); + grub_util_error (_("OS file %s open error: %s"), dest, + strerror (errno)); return; } read_file (src, cp_hook); @@ -241,7 +242,8 @@ cmd_cmp (char *src, char *dest) ff = fopen (dest, "rb"); if (ff == NULL) { - grub_util_error (_("open error")); + grub_util_error (_("OS file %s open error: %s"), dest, + strerror (errno)); return; }