Skip to content
Snippets Groups Projects
Commit cedbe8723d99 authored by Siddharth Agarwal's avatar Siddharth Agarwal
Browse files

hook: even fewer parentheses for load errors

Missed this one.
parent 1fc7b5363871
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@
d = funcname.rfind('.')
if d == -1:
raise error.HookLoadError(
_('%s hook is invalid ("%s" not in a module)')
_('%s hook is invalid: "%s" not in a module')
% (hname, funcname))
modname = funcname[:d]
oldpaths = sys.path
......
......@@ -496,7 +496,7 @@
$ hg pull ../a
pulling from ../a
searching for changes
abort: preoutgoing.nomodule hook is invalid ("nomodule" not in a module)
abort: preoutgoing.nomodule hook is invalid: "nomodule" not in a module
[255]
$ echo '[hooks]' > ../a/.hg/hgrc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment