catch proper ExecExceptions
This commit is contained in:
parent
840863af33
commit
3b3ab44b28
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
The conspicuously missing config.php looks like:
|
The conspicuously missing config.php looks like:
|
||||||
|
|
||||||
|
(you'll need to create the `WORKING_DIR`)
|
||||||
|
|
||||||
```php
|
```php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
|
@ -93,7 +93,7 @@ function array_intersperse($array, $val) {
|
||||||
function outrunner($msg) {
|
function outrunner($msg) {
|
||||||
try {
|
try {
|
||||||
return runner($msg);
|
return runner($msg);
|
||||||
} catch (ExecException $e) {
|
} catch (\GHE\ExecException $e) {
|
||||||
var_dump($e->getMessage());
|
var_dump($e->getMessage());
|
||||||
var_dump($e->getCode());
|
var_dump($e->getCode());
|
||||||
var_dump($e->getOutput());
|
var_dump($e->getOutput());
|
||||||
|
|
Loading…
Reference in a new issue