diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2021-10-28 16:13:55 +0100 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2021-11-02 15:55:13 +0000 |
commit | 6fa6b54f5b931e10e24f773d991a48da4f79e61a (patch) | |
tree | cb73a05e910d18e71486467401e27f0be64a542d /include/monitor/hmp.h | |
parent | fa2613afa1ebe50c59606f1c30ad6738fe6919a5 (diff) | |
download | qemu-6fa6b54f5b931e10e24f773d991a48da4f79e61a.zip qemu-6fa6b54f5b931e10e24f773d991a48da4f79e61a.tar.gz qemu-6fa6b54f5b931e10e24f773d991a48da4f79e61a.tar.bz2 |
docs/devel: update error handling guidance for HMP commands
Best practice is to use the 'hmp_handle_error' function, not
'monitor_printf' or 'error_report_err'. This ensures that the
message always gets an 'Error: ' prefix, distinguishing it
from normal command output.
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'include/monitor/hmp.h')
0 files changed, 0 insertions, 0 deletions