mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
fish/uri: Tidy up error messages.
This commit is contained in:
@@ -142,7 +142,7 @@ parse (const char *arg, char **path_ret, char **protocol_ret,
|
||||
|
||||
*protocol_ret = strdup (uri->scheme);
|
||||
if (*protocol_ret == NULL) {
|
||||
perror ("strdup");
|
||||
perror ("strdup: protocol");
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ parse (const char *arg, char **path_ret, char **protocol_ret,
|
||||
if (uri->user && STRNEQ (uri->user, "")) {
|
||||
*username_ret = strdup (uri->user);
|
||||
if (*username_ret == NULL) {
|
||||
perror ("username");
|
||||
perror ("strdup: username");
|
||||
free (*protocol_ret);
|
||||
guestfs___free_string_list (*server_ret);
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user