catch proper ExecExceptions

This commit is contained in:
Graham Christensen 2017-10-29 17:42:23 -04:00
parent 840863af33
commit 3b3ab44b28
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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());