diff options
author | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2019-02-12 13:47:56 +0000 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2019-02-14 11:46:30 +0100 |
commit | 66363e9a43f649360a3f74d2805c9f864da027eb (patch) | |
tree | 2506af35762ab758b952b645528892d9088ad5b1 /hmp.c | |
parent | 65b182c379b96b87973567084123c9d47af474e5 (diff) |
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>
Diffstat (limited to 'hmp.c')
-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: "); } } |