From d7f57e2758984e2414c6bdbe7f7daf17980c7ca1 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 26 Jul 2018 12:13:41 +0300 Subject: [PATCH] Improved error logging --- app/Console/Commands/CheckData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/CheckData.php b/app/Console/Commands/CheckData.php index c384a00b853f..30e90ec390be 100644 --- a/app/Console/Commands/CheckData.php +++ b/app/Console/Commands/CheckData.php @@ -107,7 +107,7 @@ class CheckData extends Command ->subject("Check-Data: " . strtoupper($this->isValid ? RESULT_SUCCESS : RESULT_FAILURE) . " [{$database}]"); }); } elseif (! $this->isValid) { - throw new Exception('Check data failed!!'); + throw new Exception("Check data failed!!\n" . $this->log); } }