diff options
author | Steven Knight <knight@baldmt.com> | 2002-05-13 03:25:56 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-05-13 03:25:56 (GMT) |
commit | cc9bcd4f85a559c8d1cdbfed8ce8991cdb281367 (patch) | |
tree | cd1f2dfd43c7c2c09f83fadcc4a3e9b2184da02a /src/engine/SCons/Defaults.py | |
parent | 98902d34f726fe64d69a344d5e8c77765937b1a3 (diff) | |
download | SCons-cc9bcd4f85a559c8d1cdbfed8ce8991cdb281367.zip SCons-cc9bcd4f85a559c8d1cdbfed8ce8991cdb281367.tar.gz SCons-cc9bcd4f85a559c8d1cdbfed8ce8991cdb281367.tar.bz2 |
Fix some bad exceptions in Defaults.py (Anthony Roach)
Diffstat (limited to 'src/engine/SCons/Defaults.py')
-rw-r--r-- | src/engine/SCons/Defaults.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/SCons/Defaults.py b/src/engine/SCons/Defaults.py index a7b0dc0..2259f40 100644 --- a/src/engine/SCons/Defaults.py +++ b/src/engine/SCons/Defaults.py @@ -69,7 +69,7 @@ class SharedCmdGenerator: for src in source: try: if src.attributes.shared != shared: - raise UserError("Source file: %s must be built with shared=%s in order to be compatible with the selected target." % (src, str(shared))) + raise SCons.Errors.UserError("Source file: %s must be built with shared=%s in order to be compatible with the selected target." % (src, str(shared))) except AttributeError: pass for t in target: @@ -247,7 +247,7 @@ def win32LibEmitter(target, source, env, shared=0, dll = tgt break if not dll: - raise UserError("A shared library should have exactly one target with the suffix: %s" % env.subst("$SHLIBSUFFIX")) + raise SCons.Errors.UserError("A shared library should have exactly one target with the suffix: %s" % env.subst("$SHLIBSUFFIX")) if env.has_key("WIN32_INSERT_DEF") and \ env["WIN32_INSERT_DEF"] and \ |