changeset 24218:cecaec0e8719

fileset: use UnknownIdentifier where appropriate
author Augie Fackler <augie@google.com>
date Mon, 26 Jan 2015 14:31:48 -0500
parents d2b81256db1e
children 282c0d8c1880
files mercurial/fileset.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: