diff options
| author | Markus Armbruster | 2015-03-13 13:08:36 +0100 |
|---|---|---|
| committer | Markus Armbruster | 2015-06-08 19:33:20 +0200 |
| commit | 8122928a52248e28513c79d9b9929c6d20c866ea (patch) | |
| tree | 8d6af9234be2d3f49d1ebeabade0a0eab9d9a654 | |
| parent | vl: Print -device help at most once (diff) | |
| download | qemu-8122928a52248e28513c79d9b9929c6d20c866ea.tar.gz qemu-8122928a52248e28513c79d9b9929c6d20c866ea.tar.xz qemu-8122928a52248e28513c79d9b9929c6d20c866ea.zip | |
vl: Fail right after first bad -object
Failure to create an object with -object is a fatal error. However,
we delay the actual exit until all -object are processed. On the one
hand, this permits detection of genuine additional errors. On the
other hand, it can muddy the waters with uninteresting additional
errors, e.g. when a later -object tries to reference a prior one that
failed.
We generally stop right on the first bad option, so do that for
-object as well.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
| -rw-r--r-- | vl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4055,7 +4055,7 @@ int main(int argc, char **argv, char **envp) } if (qemu_opts_foreach(qemu_find_opts("object"), - object_create, NULL, 0) != 0) { + object_create, NULL, 1) != 0) { exit(1); } |
