💚 Display error log instead of fatal error in case of Exception when modifying an object in console

This commit is contained in:
Eric
2018-12-04 11:20:35 +01:00
parent 72e2473444
commit af8b06dda6

View File

@@ -2405,7 +2405,7 @@ abstract class DBObject implements iDisplay
catch (Exception $e)
{
$aErrors = array($e->getMessage());
throw new CoreCannotSaveObjectException(array('id' => $this->GetKey(), 'class' => $sClass, 'issues' => $aErrors));
throw new CoreCannotSaveObjectException(array('id' => $this->GetKey(), 'class' => get_class($this), 'issues' => $aErrors));
}
finally
{