Skip to content
Browse files

Merge pull request #1 from mrwoof/master

Add more error detail if it exists on error
  • Loading branch information...
2 parents f8e770d + 7e00694 commit 80f676b5b083627034171d0589da036f0b94e7f5 @jehiah committed Mar 12, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 git-open-pull
View
7 git-open-pull
@@ -251,9 +251,12 @@ data = sys.stdin.read().strip().replace("\n",r"\n").replace("\r","")
data = json.loads(data)
pull_link = data.get("html_url")
if not pull_link:
- print "ERROR updating issue to a pull request: ", data.get("message")
+ print "ERROR updating issue to a pull request: " + data.get("message")
+ for error in data.get("errors", []):
+ if error.get("message"):
+ print " --> ERROR DETAIL: " + error.get("message")
else:
print "Pull Request Opened"
print pull_link
')
-echo $PULL_STATUS
+echo "$PULL_STATUS"

0 comments on commit 80f676b

Please sign in to comment.
Something went wrong with that request. Please try again.