diff options
author | Dr. David Alan Gilbert | 2019-02-12 14:47:56 +0100 |
---|---|---|
committer | Laurent Vivier | 2019-02-14 11:46:30 +0100 |
commit | 66363e9a43f649360a3f74d2805c9f864da027eb (patch) | |
tree | 2506af35762ab758b952b645528892d9088ad5b1 | |
parent | pckbd: Convert DPRINTF->trace (diff) | |
download | qemu-66363e9a43f649360a3f74d2805c9f864da027eb.tar.gz qemu-66363e9a43f649360a3f74d2805c9f864da027eb.tar.xz qemu-66363e9a43f649360a3f74d2805c9f864da027eb.zip |
HMP: Prepend errors with 'Error:'
Always make error messages start with 'Error:' as a fallback
to make sure that anything parsing them can tell it failed.
Note: Some places don't use hmp_handle_error
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20190212134758.10514-3-dgilbert@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
-rw-r--r-- | hmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -62,7 +62,7 @@ static void hmp_handle_error(Monitor *mon, Error **errp) { assert(errp); if (*errp) { - error_report_err(*errp); + error_reportf_err(*errp, "Error: "); } } |