diff mercurial/error.py @ 32340:9c023179e8d0

error: add hint to ProgrammingError As the hint isn't shown by the default exception handler, we need to print it manually. I've copied the "** " style from _exceptionwarning().
author Yuya Nishihara <yuya@tcha.org>
date Sun, 14 May 2017 15:41:27 +0900
parents a29580905771
children c8e10565a113
line wrap: on
line diff
--- a/mercurial/error.py	Mon May 08 22:14:56 2017 +0900
+++ b/mercurial/error.py	Sun May 14 15:41:27 2017 +0900
@@ -174,7 +174,7 @@
 class PushRaced(RuntimeError):
     """An exception raised during unbundling that indicate a push race"""
 
-class ProgrammingError(RuntimeError):
+class ProgrammingError(Hint, RuntimeError):
     """Raised if a mercurial (core or extension) developer made a mistake"""
 
 # bundle2 related errors