modifs.mineures sans commentaires
This commit is contained in:
parent
fe5ed584b4
commit
57759c2d51
|
@ -2,7 +2,7 @@
|
|||
namespace nur\cli;
|
||||
|
||||
use Exception;
|
||||
use nur\b\ExitError;
|
||||
use nur\b\ExitError as nur_ExitError;
|
||||
use nur\b\ValueException;
|
||||
use nur\config;
|
||||
use nur\config\ArrayConfig;
|
||||
|
@ -11,6 +11,7 @@ use nur\os;
|
|||
use nur\path;
|
||||
use nur\sery\app;
|
||||
use nur\sery\app\RunFile;
|
||||
use nur\sery\ExitError;
|
||||
use nur\sery\output\console as nconsole;
|
||||
use nur\sery\output\log as nlog;
|
||||
use nur\sery\output\msg as nmsg;
|
||||
|
@ -247,6 +248,9 @@ EOT);
|
|||
static::_app_configure($app);
|
||||
static::_app_main($app);
|
||||
} catch (ExitError $e) {
|
||||
if ($e->haveUserMessage()) msg::error($e->getUserMessage());
|
||||
exit($e->getCode());
|
||||
} catch (nur_ExitError $e) {
|
||||
if ($e->haveMessage()) msg::error($e);
|
||||
exit($e->getCode());
|
||||
} catch (Exception $e) {
|
||||
|
|
Loading…
Reference in New Issue