summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Quirk <richard.quirk@gmail.com>2011-12-24 09:15:53 (GMT)
committerRichard Quirk <richard.quirk@gmail.com>2011-12-24 09:15:53 (GMT)
commit29948306bedca81fd85eb6f2978adbb454ca84db (patch)
treecda8e067954026f9a9334aa2632b63c4b97ff2ad /src
parentbd7d123c420fb580b8339c976fec607ff93bfd8e (diff)
downloadSCons-29948306bedca81fd85eb6f2978adbb454ca84db.zip
SCons-29948306bedca81fd85eb6f2978adbb454ca84db.tar.gz
SCons-29948306bedca81fd85eb6f2978adbb454ca84db.tar.bz2
Fix incorrect UserError usage
SCons.Errors.UserError has not been imported, so prior to this patch the code would have caused a NameError.
Diffstat (limited to 'src')
-rw-r--r--src/engine/SCons/Action.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/Action.py b/src/engine/SCons/Action.py
index 6909a9a..c1eef75 100644
--- a/src/engine/SCons/Action.py
+++ b/src/engine/SCons/Action.py
@@ -899,7 +899,7 @@ class CommandGeneratorAction(ActionBase):
show=_null, execute=_null, chdir=_null, executor=None):
act = self._generate(target, source, env, 0, executor)
if act is None:
- raise UserError("While building `%s': "
+ raise SCons.Errors.UserError("While building `%s': "
"Cannot deduce file extension from source files: %s"
% (repr(list(map(str, target))), repr(list(map(str, source)))))
return act(target, source, env, exitstatfunc, presub,