N°7581 Improve error message readability during object creation/modification in the portal (regression introduced with N°7545)

This commit is contained in:
Timothee
2024-06-21 12:36:35 +02:00
parent 33a906f11a
commit 1f1a2b660f
2 changed files with 19 additions and 1 deletions

View File

@@ -1167,7 +1167,7 @@ class ObjectFormManager extends FormManager
{
$this->oObject->DBWrite();
} catch (CoreCannotSaveObjectException $e) {
throw new Exception($e->getHtmlMessage());
throw new Exception($e->getTextMessage());
} catch (InvalidExternalKeyValueException $e) {
ExceptionLog::LogException($e, $e->getContextData());
$bExceptionLogged = true;