mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
daemon: Don't need to prefix error messages with the command name.
The RPC stubs already prefix the command name to error messages.
The daemon doesn't have to do this. As a (small) benefit this also
makes the daemon slightly smaller.
Code in the daemon such as:
if (argv[0] == NULL) {
reply_with_error ("passed an empty list");
return NULL;
}
now results in error messages like this:
><fs> command ""
libguestfs: error: command: passed an empty list
(whereas previously you would have seen ..command: command:..)
This commit is contained in:
@@ -46,7 +46,7 @@ do_glob_expand (const char *pattern)
|
||||
|
||||
if (r != 0) {
|
||||
if (errno != 0)
|
||||
reply_with_perror ("glob: %s", pattern);
|
||||
reply_with_perror ("%s", pattern);
|
||||
else
|
||||
reply_with_error ("glob failed: %s", pattern);
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user