Set RC 1 if an exception occured (#1013)

This commit is contained in:
FliegenKLATSCH
2022-03-26 13:54:32 +01:00
committed by Michael Kaufmann
parent 439635d329
commit 1d455ec4fb
2 changed files with 2 additions and 0 deletions

View File

@@ -28,4 +28,5 @@ try {
\Froxlor\Cli\ConfigServicesCmd::processParameters($argc, $argv); \Froxlor\Cli\ConfigServicesCmd::processParameters($argc, $argv);
} catch (Exception $e) { } catch (Exception $e) {
\Froxlor\Cli\ConfigServicesCmd::printerr($e->getMessage()); \Froxlor\Cli\ConfigServicesCmd::printerr($e->getMessage());
exit 1;
} }

View File

@@ -28,4 +28,5 @@ try {
\Froxlor\Cli\SwitchServerIpCmd::processParameters($argc, $argv); \Froxlor\Cli\SwitchServerIpCmd::processParameters($argc, $argv);
} catch (Exception $e) { } catch (Exception $e) {
\Froxlor\Cli\SwitchServerIpCmd::printerr($e->getMessage()); \Froxlor\Cli\SwitchServerIpCmd::printerr($e->getMessage());
exit 1;
} }