diff 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
line wrap: on
line diff
--- a/mercurial/chgserver.py	Thu Dec 17 18:08:25 2020 +0100
+++ b/mercurial/chgserver.py	Fri Dec 18 13:53:26 2020 +0530
@@ -518,6 +518,8 @@
         except error.Abort as inst:
             if isinstance(inst, error.InputError):
                 detailed_exit_code = 10
+            elif isinstance(inst, error.ConfigError):
+                detailed_exit_code = 30
             self.ui.error(inst.format())
             errorraised = True