qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org
Subject: [PULL 2/9] qga: Improve error for guest-set-user-password parameter @crypted
Date: Fri, 18 Oct 2024 15:28:17 +0200	[thread overview]
Message-ID: <20241018132824.3379780-3-armbru@redhat.com> (raw)
In-Reply-To: <20241018132824.3379780-1-armbru@redhat.com>

The Windows version of guest-set-user-password rejects argument
"crypted": true with the rather useless "this feature or command is
not currently supported".  Improve to "'crypted' must be off on this
host".

QERR_UNSUPPORTED is now unused.  Drop.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240911131206.2503035-3-armbru@redhat.com>
---
 include/qapi/qmp/qerror.h | 3 ---
 qga/commands-win32.c      | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/include/qapi/qmp/qerror.h b/include/qapi/qmp/qerror.h
index 38e89762b3..101c1141b9 100644
--- a/include/qapi/qmp/qerror.h
+++ b/include/qapi/qmp/qerror.h
@@ -26,7 +26,4 @@
 #define QERR_PROPERTY_VALUE_OUT_OF_RANGE \
     "Property %s.%s doesn't take value %" PRId64 " (minimum: %" PRId64 ", maximum: %" PRId64 ")"
 
-#define QERR_UNSUPPORTED \
-    "this feature or command is not currently supported"
-
 #endif /* QERROR_H */
diff --git a/qga/commands-win32.c b/qga/commands-win32.c
index 61b36da469..038beb8cfa 100644
--- a/qga/commands-win32.c
+++ b/qga/commands-win32.c
@@ -1914,7 +1914,7 @@ void qmp_guest_set_user_password(const char *username,
     GError *gerr = NULL;
 
     if (crypted) {
-        error_setg(errp, QERR_UNSUPPORTED);
+        error_setg(errp, "'crypted' must be off on this host");
         return;
     }
 
-- 
2.46.0



  parent reply	other threads:[~2024-10-18 13:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-18 13:28 [PULL 0/9] Error reporting patches for 2024-10-18 Markus Armbruster
2024-10-18 13:28 ` [PULL 1/9] qga/qapi-schema: Drop obsolete note on "unsupported" errors Markus Armbruster
2024-10-18 13:28 ` Markus Armbruster [this message]
2024-10-18 13:28 ` [PULL 3/9] error: Drop superfluous #include "qapi/qmp/qerror.h" Markus Armbruster
2024-10-18 13:28 ` [PULL 4/9] block: Improve errors about block sizes Markus Armbruster
2024-10-18 13:28 ` [PULL 5/9] block: Adjust check_block_size() signature Markus Armbruster
2024-10-18 13:28 ` [PULL 6/9] target/i386/cpu: Avoid mixing signed and unsigned in property setters Markus Armbruster
2024-10-18 13:28 ` [PULL 7/9] target/i386/cpu: Improve errors for out of bounds property values Markus Armbruster
2024-10-18 13:28 ` [PULL 8/9] hw/intc/openpic: " Markus Armbruster
2024-10-18 13:28 ` [PULL 9/9] qerror: QERR_PROPERTY_VALUE_OUT_OF_RANGE is no longer used, drop Markus Armbruster
2024-10-21 11:36 ` [PULL 0/9] Error reporting patches for 2024-10-18 Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241018132824.3379780-3-armbru@redhat.com \
    --to=armbru@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).