diff mercurial/templater.py @ 46121:c000eff2c635

errors: raise InputError on recursive template definition Differential Revision: https://phab.mercurial-scm.org/D9602
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 12 Nov 2020 10:41:03 -0800
parents 89a2afe31e82
children 5272542196cc
line wrap: on
line diff
--- a/mercurial/templater.py	Mon Nov 23 16:39:53 2020 -0800
+++ b/mercurial/templater.py	Thu Nov 12 10:41:03 2020 -0800
@@ -451,7 +451,7 @@
 
 
 def _runrecursivesymbol(context, mapping, key):
-    raise error.Abort(_(b"recursive reference '%s' in template") % key)
+    raise error.InputError(_(b"recursive reference '%s' in template") % key)
 
 
 def buildtemplate(exp, context):