Skip to content
Snippets Groups Projects
Commit 9c9e0b4b2ca7 authored by Martin von Zweigbergk's avatar Martin von Zweigbergk
Browse files

error: use detailed exit code 10 for command errors

Command errors (unknown or ambiguous commands, or bad command
arguments or options) are handled in the `dispatch` module. Most other
errors are handled in the `scmutil` module. This patch therefore has
to duplicate a little bit of code from the `scmutil` module. It's just
a few lines, however, so it seems fine to me. It's a pretty common
category of errors, so it's important to have them respect
`ui.detailed-exit-code`.

Differential Revision: https://phab.mercurial-scm.org/D9777
parent c9b2a4d69e66
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment