ui: Improve some set_passwd, expire_password error messages
commit9272186d3dbfc770993195f480422fdf058896c5
authorMarkus Armbruster <armbru@redhat.com>
Fri, 13 Nov 2020 08:26:20 +0000 (13 09:26 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 10 Dec 2020 16:16:44 +0000 (10 17:16 +0100)
treec4822e9577ce5dcd78644bdbd41be77d807c9227
parentb0d7be2a62eecade217fa45521be18149346eaa1
ui: Improve some set_passwd, expire_password error messages

set_passwd and expire_password reject invalid "protocol" with "Invalid
parameter 'protocol'".  Misleading; the parameter is valid, its value
isn't.  Improve to "Parameter 'protocol' expects 'vnc' or 'spice'".

expire_password fails with "Could not set password".  Misleading;
improve to "Could not set password expire time".

QERR_SET_PASSWD_FAILED is now unused.  Drop.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20201113082626.2725812-5-armbru@redhat.com>
include/qapi/qmp/qerror.h
monitor/qmp-cmds.c