N°7023 - Improve debug message on portal \DBObject::CheckChangedExtKeysValues() call

This commit is contained in:
Molkobain
2023-12-04 22:31:56 +01:00
parent 08e8d15d78
commit c9bb628c30

View File

@@ -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'));