summaryrefslogtreecommitdiffstats
path: root/monitor/hmp.c
diff options
context:
space:
mode:
authorDaniel P. Berrangé2021-10-28 17:13:55 +0200
committerDaniel P. Berrangé2021-11-02 16:55:13 +0100
commit6fa6b54f5b931e10e24f773d991a48da4f79e61a (patch)
treecb73a05e910d18e71486467401e27f0be64a542d /monitor/hmp.c
parentdocs/devel: tweak headings in monitor command docs (diff)
downloadqemu-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