From f2459256302e10f4b756c360383f6d8f97761029 Mon Sep 17 00:00:00 2001 From: Jerry Radwick Date: Fri, 27 Dec 2024 16:53:52 -0500 Subject: [PATCH] Use auto-exit --- bin/drall | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/bin/drall b/bin/drall index e2e1465..f8d3735 100755 --- a/bin/drall +++ b/bin/drall @@ -24,13 +24,6 @@ foreach ([ use Drall\Drall; -try { - $drall = new Drall(); - $exitCode = $drall->run(); -} -catch (Exception $e) { - echo "ERROR {$e->getCode()}: {$e->getMessage()}"; - exit(1); -} - -exit($exitCode); +$drall = new Drall(); +$drall->setAutoExit(TRUE); +$drall->run();