changeset 31654:4bc3e55cf386

crecord: use ProgrammingError
author Jun Wu <quark@fb.com>
date Sun, 26 Mar 2017 17:00:23 -0700
parents 8defc7d9adae
children 23391acfc421
files mercurial/crecord.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):