Github: Display error message when creating new branch fails due to unmerged files

Created on 11 Sep 2016  Â·  2Comments  Â·  Source: atom/github

➜  repo-merge-conflict-all git:(master) ✗ gco -b new branch
removed-on-master.txt: needs merge
error: you need to resolve your current index first
branching bug

Most helpful comment

Just a thought.. there are probably tons of edge cases and errors. Would it make sense to have some kind of "catch all errors and show them as a message".

  • It would free us a bit from solving all these cases that happen sometimes, but are still not too common.
  • People reading those messages probably know what to do (well, if they are familiar using git with the command line).

Similar to that output at the bottom of the git-control package, but not show it all the time and only when there is something we don't handle.

68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f6a61636f67722f61746f6d2d6769742d636f6e74726f6c2f6d61737465722f73637265656e73686f74732f6769742d30312e706e67

All 2 comments

Just a thought.. there are probably tons of edge cases and errors. Would it make sense to have some kind of "catch all errors and show them as a message".

  • It would free us a bit from solving all these cases that happen sometimes, but are still not too common.
  • People reading those messages probably know what to do (well, if they are familiar using git with the command line).

Similar to that output at the bottom of the git-control package, but not show it all the time and only when there is something we don't handle.

68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f6a61636f67722f61746f6d2d6769742d636f6e74726f6c2f6d61737465722f73637265656e73686f74732f6769742d30312e706e67

@simurai yeah sounds reasonable. Currently we are catching errors and for certain ones we are displaying nicer, more readable versions of the error message. For errors that we're not doing this for, we should probably just display whatever git outputs to the command line.

Was this page helpful?
0 / 5 - 0 ratings