Skip to content
  • Martin von Zweigbergk's avatar
    error: use detailed exit code 10 for command errors · 9c9e0b4b2ca7
    Martin von Zweigbergk authored
    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
    9c9e0b4b2ca7