mirror of
https://github.com/xemu-project/xemu.git
synced 2025-04-02 11:11:48 -04:00
Monitor: Report more than one error in handlers
Handlers can generate only one error in a call, we let the programmer know if they brake this rule and clients will only get the first generated error. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
10e4f606ec
commit
068b332a65
1 changed files with 2 additions and 1 deletions
|
@ -4760,7 +4760,8 @@ void qemu_error_internal(const char *file, int linenr, const char *func,
|
|||
if (!qemu_error_sink->mon->error) {
|
||||
qemu_error_sink->mon->error = qerror;
|
||||
} else {
|
||||
/* XXX: warn the programmer */
|
||||
MON_DEBUG("Additional error report at %s:%d\n", qerror->file,
|
||||
qerror->linenr);
|
||||
QDECREF(qerror);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue