Handle missing programs
This commit is contained in:
parent
8dfda2b86b
commit
fb26b06861
@ -114,6 +114,8 @@ def run(*args, **kwargs):
|
|||||||
|
|
||||||
sys.exit("Error: got exitcode {} from command {}".format(
|
sys.exit("Error: got exitcode {} from command {}".format(
|
||||||
exception.returncode, " ".join(args)))
|
exception.returncode, " ".join(args)))
|
||||||
|
except OSError:
|
||||||
|
sys.exit("Error: couldn't run {}: is {} in PATH?".format(" ".join(args), args[0]))
|
||||||
|
|
||||||
if opts.verbose and capture:
|
if opts.verbose and capture:
|
||||||
sys.stdout.write(output.decode("UTF-8"))
|
sys.stdout.write(output.decode("UTF-8"))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user