forked from extern/httpie-cli
Cleanup
This commit is contained in:
parent
66e168b2af
commit
d24f30d0af
@ -135,7 +135,7 @@ class StrCLIResponse(str, BaseCLIResponse):
|
|||||||
return self._json
|
return self._json
|
||||||
|
|
||||||
|
|
||||||
class ExitStatusException(Exception):
|
class ExitStatusError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@ -220,7 +220,7 @@ def http(*args, **kwargs):
|
|||||||
else:
|
else:
|
||||||
if not error_exit_ok and exit_status != ExitStatus.OK:
|
if not error_exit_ok and exit_status != ExitStatus.OK:
|
||||||
dump_stderr()
|
dump_stderr()
|
||||||
raise ExitStatusException(
|
raise ExitStatusError(
|
||||||
'httpie.core.main() unexpectedly returned'
|
'httpie.core.main() unexpectedly returned'
|
||||||
' a non-zero exit status: {0} ({1})'.format(
|
' a non-zero exit status: {0} ({1})'.format(
|
||||||
exit_status,
|
exit_status,
|
||||||
|
Loading…
Reference in New Issue
Block a user