From 57759c2d5137425782a303e3ea06a9979b888998 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Mon, 30 Sep 2024 14:18:05 +0400 Subject: [PATCH] modifs.mineures sans commentaires --- nur_src/cli/Application.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nur_src/cli/Application.php b/nur_src/cli/Application.php index 9bd4ee8..d54b486 100644 --- a/nur_src/cli/Application.php +++ b/nur_src/cli/Application.php @@ -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) {