Closed rotty3000 closed 9 years ago
git does print the error message clearly, but the exit code is a generic one (non-zero). This is why the stack trace is printed.
For avoiding to print the stack trace for errors like that (rejected updates) we have to spy on git's stderr / stdout to identify patterns (e.g., the phrase "Updates were rejected") to avoid printing the stack trace on these rarer situations. I am working on a solution.
This is a duplicate of https://github.com/node-gh/gh/issues/400
Closing.
If I send another PR to a branch which I get rejected on the fastforward I get an error.
e.g.
If gh handled this error cleanly then it'd be easier to see the issue. In fact git already prints out the problem pretty nicely.