diff options
Diffstat (limited to 'qemu-error.c')
-rw-r--r-- | qemu-error.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-error.c b/qemu-error.c index 5be6bea4c9..a8c178b332 100644 --- a/qemu-error.c +++ b/qemu-error.c @@ -207,7 +207,7 @@ void qerror_report_internal(const char *file, int linenr, const char *func, qerror = qerror_from_info(file, linenr, func, fmt, &va); va_end(va); - if (cur_mon) { + if (monitor_cur_is_qmp()) { monitor_set_error(cur_mon, qerror); } else { qerror_print(qerror); |