Page MenuHomePhabricator

errors: let each Abort subclass define its error code
ClosedPublic

Authored by martinvonz on May 18 2021, 8:30 PM.

Details

Summary

It's more flexible to have the error codes defined on the error types
themselves. That way extensions can easily set their own exit code. It
also means that we can reduce a bit of duplication betwen
scmutil.callcatch() and chgserver.chgcmdserver.validate().

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage