crecord: use ProgrammingError
authorJun Wu <quark@fb.com>
Sun, 26 Mar 2017 17:00:23 -0700
changeset 31649 4bc3e55cf386
parent 31648 8defc7d9adae
child 31650 23391acfc421
crecord: use ProgrammingError
mercurial/crecord.py
--- a/mercurial/crecord.py	Sun Mar 26 16:59:30 2017 -0700
+++ b/mercurial/crecord.py	Sun Mar 26 17:00:23 2017 -0700
@@ -564,7 +564,7 @@
 
         # affects some ui text
         if operation not in _headermessages:
-            raise RuntimeError('unexpected operation: %s' % operation)
+            raise error.ProgrammingError('unexpected operation: %s' % operation)
         self.operation = operation
 
     def uparrowevent(self):