diff options
Diffstat (limited to 'paste/util/thirdparty.py')
| -rw-r--r-- | paste/util/thirdparty.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/paste/util/thirdparty.py b/paste/util/thirdparty.py index 0883372..7944ede 100644 --- a/paste/util/thirdparty.py +++ b/paste/util/thirdparty.py @@ -44,12 +44,12 @@ def add_package(package_name): """ try: exec "import %s" % package_name - except ImportError: + except ImportError, e: path = os.path.join(third_party, '%s-files' % package_name) if os.path.exists(path): sys.path.append(path) else: raise ImportError( "Cannot load the package %s; expected to find it in " - "%s. Have you run build-pkg.py?" - % (package_name, path)) + "%s. Have you run build-pkg.py? (import gave error: %s)" + % (package_name, path, e)) |
