From eac37c7967d49df54788993373d76c5b7c723ae6 Mon Sep 17 00:00:00 2001 From: mattab Date: Tue, 18 Feb 2014 14:09:54 +1300 Subject: [PATCH] Return proper error code --- core/Console.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/Console.php b/core/Console.php index 5dd628743be..086cbaf2c7b 100644 --- a/core/Console.php +++ b/core/Console.php @@ -95,7 +95,8 @@ protected function initConfig() $config->checkLocalConfigFound(); return $config; } catch (\Exception $e) { - die($e->getMessage() . "\n\n"); + echo ($e->getMessage() . "\n\n"); + exit(1); } }