Skip to content

Commit

Permalink
qga: Tweak a guest-shutdown error message
Browse files Browse the repository at this point in the history
Change

    Parameter 'mode' expects halt|powerdown|reboot

to

    Parameter 'mode' expects 'halt', 'powerdown', or 'reboot'

for consistency with similar error messages elsewhere.

Cc: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20201113082626.2725812-9-armbru@redhat.com>
  • Loading branch information
Markus Armbruster committed Dec 10, 2020
1 parent ac84b0f commit 9fc0ab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qga/commands-win32.c
Expand Up @@ -334,7 +334,7 @@ void qmp_guest_shutdown(bool has_mode, const char *mode, Error **errp)
shutdown_flag |= EWX_REBOOT;
} else {
error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "mode",
"halt|powerdown|reboot");
"'halt', 'powerdown', or 'reboot'");
return;
}

Expand Down

0 comments on commit 9fc0ab5

Please sign in to comment.