Re: [PATCH 2/2] authz-list-file: Improve an error message

2020-11-13 Thread Markus Armbruster
Daniel P. Berrangé writes: > On Fri, Nov 13, 2020 at 07:23:58AM +0100, Markus Armbruster wrote: >> When qauthz_list_file_load() rejects JSON values other than JSON >> object with a rather confusing error message: >> >> $ echo 1 | qemu-system-x86_64 -nodefaults -S -display none -object >> a

Re: [PATCH 2/2] authz-list-file: Improve an error message

2020-11-13 Thread Daniel P . Berrangé
On Fri, Nov 13, 2020 at 07:23:58AM +0100, Markus Armbruster wrote: > When qauthz_list_file_load() rejects JSON values other than JSON > object with a rather confusing error message: > > $ echo 1 | qemu-system-x86_64 -nodefaults -S -display none -object > authz-list-file,id=authz0,filename=/d

[PATCH 2/2] authz-list-file: Improve an error message

2020-11-12 Thread Markus Armbruster
When qauthz_list_file_load() rejects JSON values other than JSON object with a rather confusing error message: $ echo 1 | qemu-system-x86_64 -nodefaults -S -display none -object authz-list-file,id=authz0,filename=/dev/stdin qemu-system-x86_64: -object authz-list-file,id=authz0,filename=/