Re: [Qemu-devel] [PATCH v2 0/5] qemu-io: Exit with error when a command failed

2018-06-01 Thread Max Reitz
On 2018-05-09 21:42, Max Reitz wrote: > Right now, qemu-io's exit code is rather useless as it is usually 0. > Except sometimes, then it's 1 in case of an error (mostly when you > specify a filename as an argument and it cannot open that). > > At the same time, most command functions' return value

[Qemu-devel] [PATCH v2 0/5] qemu-io: Exit with error when a command failed

2018-05-09 Thread Max Reitz
Right now, qemu-io's exit code is rather useless as it is usually 0. Except sometimes, then it's 1 in case of an error (mostly when you specify a filename as an argument and it cannot open that). At the same time, most command functions' return values are rather useless as they are usually 0 (mean