mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°7023 - Improve debug message on portal \DBObject::CheckChangedExtKeysValues() call
This commit is contained in:
@@ -1157,7 +1157,10 @@ class ObjectFormManager extends FormManager
|
||||
} catch (CoreCannotSaveObjectException $e) {
|
||||
throw new Exception($e->getHtmlMessage());
|
||||
} catch (InvalidExternalKeyValueException $e) {
|
||||
throw new Exception($e->getIssue());
|
||||
$sExceptionMessage = $e->getIssue();
|
||||
$sExceptionMessage .= var_export($e->getContextData(), true);
|
||||
|
||||
throw new Exception($sExceptionMessage);
|
||||
} catch (Exception $e) {
|
||||
if ($bIsNew) {
|
||||
throw new Exception(Dict::S('Portal:Error:ObjectCannotBeCreated'));
|
||||
|
||||
Reference in New Issue
Block a user