Index: bin/chromite |
diff --git a/bin/chromite b/bin/chromite |
index 48b09070c3b658c8867ce211d73e0bd987606234..9c37e6f2b154e9cd2c33227fb643786bec391cb0 100755 |
--- a/bin/chromite |
+++ b/bin/chromite |
@@ -55,6 +55,13 @@ for path in Search(os.getcwd()): |
import chromite.shell.main |
break |
except ImportError, e: |
+ # Just in case there is actually something wrong with Chromite, print |
+ # a sensible error. We match only the end of the string so that we can |
+ # handle an error within the chromite directory. |
+ # The full error is 'No module named (chromite.)shell.main' |
diandersAtChromium
2011/02/09 19:46:01
Simon: can you give me an example of the error str
|
+ if str(e) [-10:] != 'shell.main': |
+ raise |
+ |
# We've got different modules named chromite in the tree, pulling in the |
# wrong one will break the right one. So unload it. |
if 'chromite' in sys.modules: |