Closed philrz closed 4 years ago
Thanks @philrz on it
Verified in zq
commit 8820a88
. Now we get a proper error message and a non-zero return code.
$ echo '{"foo": "bar"}' | zq -t -o s3://this-bucket-does-not-exist/foo.zng -
NoSuchBucket: The specified bucket does not exist
status code: 404, request id: 29FD1AEEC0312124, host id: agzgnI0JVKL56po5zSQf6iwpO7DYEqhYkkLjK9zoA6pNHFmI6AxualIKya+0Si3S772JG2odQzo=
$ echo $?
1
Thanks @mattnibs!
Found while verifying https://github.com/brimsec/zq/issues/771. With
zq
commit4e6680f
, if I attempt to send the output to an S3 bucket that doesn't exist,zq
behaves as if it worked.