fileset: use UnknownIdentifier where appropriate
authorAugie Fackler <augie@google.com>
Mon, 26 Jan 2015 14:31:48 -0500
changeset 24218 cecaec0e8719
parent 24217 d2b81256db1e
child 24219 282c0d8c1880
fileset: use UnknownIdentifier where appropriate
mercurial/fileset.py
--- a/mercurial/fileset.py	Mon Jan 26 14:31:01 2015 -0500
+++ b/mercurial/fileset.py	Mon Jan 26 14:31:48 2015 -0500
@@ -186,7 +186,7 @@
 def func(mctx, a, b):
     if a[0] == 'symbol' and a[1] in symbols:
         return symbols[a[1]](mctx, b)
-    raise error.ParseError(_("not a function: %s") % a[1])
+    raise error.UnknownIdentifier(a[1], symbols.keys())
 
 def getlist(x):
     if not x: