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 <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Laurent Vivier <[email protected]>
This commit is contained in:
Dr. David Alan Gilbert authored and Laurent Vivier committed 2019-02-14 11:46:30 +01:00
1 parent 65b182c379
commit 66363e9a43
1 file changed
+1 -1
+1 -1
View File
@@ -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: ");
}
}