modifs.mineures sans commentaires

This commit is contained in:
Jephté Clain 2024-09-30 14:18:05 +04:00
parent fe5ed584b4
commit 57759c2d51
1 changed files with 5 additions and 1 deletions

View File

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