nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone
Blob Blame History Raw
From cdb3e2bd06aacff0c75034d360753dae90e7f104 Mon Sep 17 00:00:00 2001
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Date: Sun, 20 Jan 2013 22:05:55 +0100
Subject: [PATCH 118/482] 	* util/grub-script-check.c (main): Uniform the
 error message.

---
 ChangeLog                | 4 ++++
 util/grub-script-check.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 3ac8171..8eab442 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
+
+	* util/grub-script-check.c (main): Uniform the error message.
+
 2013-01-20  Colin Watson  <cjwatson@ubuntu.com>
 
 	Remove nested functions from ELF iterators.
diff --git a/util/grub-script-check.c b/util/grub-script-check.c
index 203a3ff..48c772a 100644
--- a/util/grub-script-check.c
+++ b/util/grub-script-check.c
@@ -169,7 +169,7 @@ main (int argc, char *argv[])
       if (! ctx.file)
 	{
           char *program = xstrdup(program_name);
-	  fprintf (stderr, "%s: %s: %s\n", program_name, 
+	  fprintf (stderr, _("cannot open `%s': %s"),
 		   ctx.arguments.filename, strerror (errno));
           argp_help (&argp, stderr, ARGP_HELP_STD_USAGE, program);
           free(program);
-- 
1.8.2.1