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

[Libguestfs] [PATCH] Fix debug help error message



When given an invalid debug command, libguestfs responds with the error message:

libguestfs: error: debug: use 'debug help' to list the supported commands

However this command does not work, as debug requires 2 arguments. This change
updates the message to prompt the user to use 'debug help 0'.
---
 daemon/debug.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/daemon/debug.c b/daemon/debug.c
index 2ba48a7..6b9d756 100644
--- a/daemon/debug.c
+++ b/daemon/debug.c
@@ -92,7 +92,7 @@ do_debug (const char *subcmd, char *const *argv)
       return cmds[i].f (subcmd, argc, argv);
   }
 
-  reply_with_error ("use 'debug help' to list the supported commands");
+  reply_with_error ("use 'debug help 0' to list the supported commands");
   return NULL;
 }
 

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