mirror of
https://github.com/valitydev/yandex-tank.git
synced 2024-11-07 02:45:21 +00:00
Merge pull request #134 from ei-grad/issue126
More intuitive error message when phantom is missing, fix #126
This commit is contained in:
commit
d75c61811e
@ -104,7 +104,11 @@ class PhantomPlugin(AbstractPlugin, AggregateResultListener):
|
||||
self.config = self.phantom.compose_config()
|
||||
args = [self.phantom_path, 'check', self.config]
|
||||
|
||||
result = tankcore.execute(args, catch_out=True)
|
||||
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(
|
||||
|
Loading…
Reference in New Issue
Block a user