diff options
author | Richard Quirk <richard.quirk@gmail.com> | 2011-12-24 10:15:53 +0100 |
---|---|---|
committer | Richard Quirk <richard.quirk@gmail.com> | 2011-12-24 10:15:53 +0100 |
commit | 29948306bedca81fd85eb6f2978adbb454ca84db (patch) | |
tree | cda8e067954026f9a9334aa2632b63c4b97ff2ad | |
parent | bd7d123c420fb580b8339c976fec607ff93bfd8e (diff) | |
download | scons-git-29948306bedca81fd85eb6f2978adbb454ca84db.tar.gz |
Fix incorrect UserError usage
SCons.Errors.UserError has not been imported, so prior to this patch the
code would have caused a NameError.
-rw-r--r-- | src/engine/SCons/Action.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/Action.py b/src/engine/SCons/Action.py index 6909a9ac9..c1eef756b 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, |