Mercurial > hg
comparison mercurial/chgserver.py @ 46145:6383bb86b700
chgserver: respect detailed exit code in case of ConfigError
This effectively backs out 60523483897cf8caf7718aaf81c58d4d9fd5e1fa
which was a bandaid. Martin yesterday fixed a similar failure which motivated me
to fix it the correct way.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 18 Dec 2020 13:53:26 +0530 |
parents | dadca47e3d4d |
children | 33c0c25d0b0f |
comparison
equal
deleted
inserted
replaced
46144:e4f6dae01b3b | 46145:6383bb86b700 |
---|---|
516 self.ui.error(_(b"(%s)\n") % inst.hint) | 516 self.ui.error(_(b"(%s)\n") % inst.hint) |
517 errorraised = True | 517 errorraised = True |
518 except error.Abort as inst: | 518 except error.Abort as inst: |
519 if isinstance(inst, error.InputError): | 519 if isinstance(inst, error.InputError): |
520 detailed_exit_code = 10 | 520 detailed_exit_code = 10 |
521 elif isinstance(inst, error.ConfigError): | |
522 detailed_exit_code = 30 | |
521 self.ui.error(inst.format()) | 523 self.ui.error(inst.format()) |
522 errorraised = True | 524 errorraised = True |
523 | 525 |
524 if errorraised: | 526 if errorraised: |
525 self.ui.flush() | 527 self.ui.flush() |