mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 00:28:47 +02:00
💚 Display error log instead of fatal error in case of Exception when modifying an object in console
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user