This commit is contained in:
Jakub Roztocil 2016-03-02 13:31:23 +08:00
parent 66e168b2af
commit d24f30d0af

View File

@ -135,7 +135,7 @@ class StrCLIResponse(str, BaseCLIResponse):
return self._json
class ExitStatusException(Exception):
class ExitStatusError(Exception):
pass
@ -220,7 +220,7 @@ def http(*args, **kwargs):
else:
if not error_exit_ok and exit_status != ExitStatus.OK:
dump_stderr()
raise ExitStatusException(
raise ExitStatusError(
'httpie.core.main() unexpectedly returned'
' a non-zero exit status: {0} ({1})'.format(
exit_status,