Improved error logging

This commit is contained in:
Hillel Coren 2018-07-26 12:13:41 +03:00
parent 657fc9a63e
commit d7f57e2758

View File

@ -107,7 +107,7 @@ class CheckData extends Command
->subject("Check-Data: " . strtoupper($this->isValid ? RESULT_SUCCESS : RESULT_FAILURE) . " [{$database}]"); ->subject("Check-Data: " . strtoupper($this->isValid ? RESULT_SUCCESS : RESULT_FAILURE) . " [{$database}]");
}); });
} elseif (! $this->isValid) { } elseif (! $this->isValid) {
throw new Exception('Check data failed!!'); throw new Exception("Check data failed!!\n" . $this->log);
} }
} }