zbyszek / rpms / grub2

Forked from rpms/grub2 5 years ago
Clone
31004e6
From cdb3e2bd06aacff0c75034d360753dae90e7f104 Mon Sep 17 00:00:00 2001
a5bd9f6
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
a5bd9f6
Date: Sun, 20 Jan 2013 22:05:55 +0100
f74b50e
Subject: [PATCH 118/482] 	* util/grub-script-check.c (main): Uniform the
a5bd9f6
 error message.
a5bd9f6
a5bd9f6
---
a5bd9f6
 ChangeLog                | 4 ++++
a5bd9f6
 util/grub-script-check.c | 2 +-
a5bd9f6
 2 files changed, 5 insertions(+), 1 deletion(-)
a5bd9f6
a5bd9f6
diff --git a/ChangeLog b/ChangeLog
a5bd9f6
index 3ac8171..8eab442 100644
a5bd9f6
--- a/ChangeLog
a5bd9f6
+++ b/ChangeLog
a5bd9f6
@@ -1,3 +1,7 @@
a5bd9f6
+2013-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
a5bd9f6
+
a5bd9f6
+	* util/grub-script-check.c (main): Uniform the error message.
a5bd9f6
+
a5bd9f6
 2013-01-20  Colin Watson  <cjwatson@ubuntu.com>
a5bd9f6
 
a5bd9f6
 	Remove nested functions from ELF iterators.
a5bd9f6
diff --git a/util/grub-script-check.c b/util/grub-script-check.c
a5bd9f6
index 203a3ff..48c772a 100644
a5bd9f6
--- a/util/grub-script-check.c
a5bd9f6
+++ b/util/grub-script-check.c
a5bd9f6
@@ -169,7 +169,7 @@ main (int argc, char *argv[])
a5bd9f6
       if (! ctx.file)
a5bd9f6
 	{
a5bd9f6
           char *program = xstrdup(program_name);
a5bd9f6
-	  fprintf (stderr, "%s: %s: %s\n", program_name, 
a5bd9f6
+	  fprintf (stderr, _("cannot open `%s': %s"),
a5bd9f6
 		   ctx.arguments.filename, strerror (errno));
a5bd9f6
           argp_help (&argp, stderr, ARGP_HELP_STD_USAGE, program);
a5bd9f6
           free(program);
a5bd9f6
-- 
31004e6
1.8.2.1
a5bd9f6