jehiah/git-open-pull — pull request #1 by mrwoof (2012-02-24 18:52:05+00:00)
Title: Add more error detail if it exists on error

I was getting this error today:

ERROR updating issue to a pull request: Validation Failed

When I looked into the full response from the pull API, it was this:

{'message': 'Validation Failed', 'errors': [{'field': 'base', 'message': 'base No commits between bitly:master and mrwoof:1740_e2e_root_domains_1740', 'code': 'custom', 'resource': 'PullRequest'}]}

That was right: I hadn't committed before my push. But the error message "Validation Failed" didn't give any clues about that.

Info from that "errors" list would have been really helpful, so this pull request displays that error info if there is any.