commit-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[2362] (search_file): Improve error message.


From: Robert Millan
Subject: [2362] (search_file): Improve error message.
Date: Mon, 22 Jun 2009 20:19:13 +0000

Revision: 2362
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2362
Author:   robertmh
Date:     2009-06-22 20:19:13 +0000 (Mon, 22 Jun 2009)
Log Message:
-----------
        (search_file): Improve error message.
        (GRUB_MOD_INIT(search)): Add missing `-n' to help output.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/commands/search.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog       2009-06-22 19:44:38 UTC (rev 2361)
+++ trunk/grub2/ChangeLog       2009-06-22 20:19:13 UTC (rev 2362)
@@ -2,6 +2,8 @@
 
        * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
        indexes.  Check for -f explicitly.
+       (search_file): Improve error message.
+       (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
 
 2009-06-22  Robert Millan  <address@hidden>
 

Modified: trunk/grub2/commands/search.c
===================================================================
--- trunk/grub2/commands/search.c       2009-06-22 19:44:38 UTC (rev 2361)
+++ trunk/grub2/commands/search.c       2009-06-22 20:19:13 UTC (rev 2362)
@@ -162,7 +162,7 @@
   grub_free (buf);
 
   if (grub_errno == GRUB_ERR_NONE && count == 0)
-    grub_error (GRUB_ERR_FILE_NOT_FOUND, "no such device");
+    grub_error (GRUB_ERR_FILE_NOT_FOUND, "no such file: %s", key);
 }
 
 static grub_err_t
@@ -196,7 +196,7 @@
   cmd =
     grub_register_extcmd ("search", grub_cmd_search,
                          GRUB_COMMAND_FLAG_BOTH,
-                         "search [-f|-l|-u|-s] NAME",
+                         "search [-f|-l|-u|-s|-n] NAME",
                          "Search devices by file, filesystem label or 
filesystem UUID."
                          " If --set is specified, the first device found is"
                          " set to a variable. If no variable name is"





reply via email to

[Prev in Thread] Current Thread [Next in Thread]