diff options
author | Daniel P. Berrangé | 2021-10-28 17:13:55 +0200 |
---|---|---|
committer | Daniel P. Berrangé | 2021-11-02 16:55:13 +0100 |
commit | 6fa6b54f5b931e10e24f773d991a48da4f79e61a (patch) | |
tree | cb73a05e910d18e71486467401e27f0be64a542d /monitor/hmp.c | |
parent | docs/devel: tweak headings in monitor command docs (diff) | |
download | qemu-6fa6b54f5b931e10e24f773d991a48da4f79e61a.tar.gz qemu-6fa6b54f5b931e10e24f773d991a48da4f79e61a.tar.xz qemu-6fa6b54f5b931e10e24f773d991a48da4f79e61a.zip |
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 'monitor/hmp.c')
0 files changed, 0 insertions, 0 deletions