Merge pull request #134 from ei-grad/issue126

More intuitive error message when phantom is missing, fix #126
This commit is contained in:
Alexey Lavrenuke 2015-02-13 02:35:33 +03:00
commit d75c61811e

View File

@ -104,7 +104,11 @@ class PhantomPlugin(AbstractPlugin, AggregateResultListener):
self.config = self.phantom.compose_config()
args = [self.phantom_path, 'check', self.config]
try:
result = tankcore.execute(args, catch_out=True)
except OSError:
raise RuntimeError("Phantom I/O engine is not installed!")
retcode = result[0]
if retcode:
raise RuntimeError(