main.py: print the output of an ImportError to help in debugging.
[catalyst.git] / catalyst / main.py
index 4146bcae205bd4253695d2df6e8a17353774b694..bba3cbab2dbbb12a444ffbec11fdc2d2ff71f9fc 100644 (file)
@@ -227,9 +227,10 @@ def import_modules():
                                raise CatalystError,"Can't find " + x + ".py plugin in " + \
                                        module_dir
 
-       except ImportError:
+       except ImportError as e:
                print "!!! catalyst: Python modules not found in "+\
                        module_dir + "; exiting."
+               print e
                sys.exit(1)
 
        return targetmap