cli/pkg/cmd/api
Mislav Marohnić d57b5171cf Print HTTP errors on stderr in api command
Most API errors are present in the response body itself, which will be
sent to stdout normally, but if stdout is redirected somewhere (as it's
common with scripts), failed HTTP requests will likely sabotage the rest
of the script, but no useful info will be shown on stderr.

This makes it so all REST and GraphQL errors are always shown on stderr.
Additionally, this makes sure that the command exits with a nonzero
status on any GraphQL errors.
2020-06-05 18:24:24 +02:00
..
api.go Print HTTP errors on stderr in api command 2020-06-05 18:24:24 +02:00
api_test.go Print HTTP errors on stderr in api command 2020-06-05 18:24:24 +02:00
http.go gh api: fix passing file/stdin contents via field arguments 2020-06-03 16:00:52 +02:00
http_test.go gh api: fix passing file/stdin contents via field arguments 2020-06-03 16:00:52 +02:00