mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
detect and report output writing errors
Detect output errors when the program exits.
Currently:
$ echo '{}' | jq . > /dev/full && echo ok
ok
with the patch:
$ echo '{}' | jq . > /dev/full && echo ok
Error: writing output failed: No space left on device
also apply to hardware/network/other I/O errors.
Signed-off-by: Nicolas Williams <nico@cryptonector.com>
This commit is contained in:
committed by
Nicolas Williams
parent
9d62c6fd0c
commit
4c22bda09b
Reference in New Issue
Block a user