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 10:48:55 +01:00
parent 6c07688c34
commit 6e31a040b2

View File

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