提交 f94bbefe 编写于 作者: M Mislav Marohnić

Rescue HTTP exceptions during `ci-status` command

This is so that a user-friendly message is shown instead of a useless
stack trace.
上级 5cb4a038
......@@ -111,6 +111,10 @@ module Hub
$stdout.puts ref_state
end
exit exit_code
rescue GitHubAPI::Exceptions
response = $!.response
display_api_exception("fetching CI status", response)
exit 1
end
# $ hub pull-request
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册