haaksmash / flowhub

Based on git-flow, but with GitHub.
22 stars 5 forks source link

Handle API exceptions more gracefully #83

Open haaksmash opened 9 years ago

haaksmash commented 9 years ago

e.g.,

GithubException - 422 {u'documentation_url': u'https://developer.github.com/v3/pulls/#create-a-pull-request', u'message': u'Validation Failed', u'errors': [{u'message': u'No commits between develop and feature/bump-gitpython', u'code': u'custom', u'resource': u'PullRequest'}]}

Should just be surfaced as "whoops, looks like you don't have any commits to publish"