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 | f0b244ae1aff7ff3a686b0dac557d764e91a1e98 (patch) | |
tree | cda8e067954026f9a9334aa2632b63c4b97ff2ad /src/engine/SCons/Action.py | |
parent | 5106147a9762cd79cd1220aec0182ec1e46daad7 (diff) | |
download | scons-f0b244ae1aff7ff3a686b0dac557d764e91a1e98.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.
Diffstat (limited to 'src/engine/SCons/Action.py')
-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 6909a9ac..c1eef756 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, |