mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2714 from chillu/pulls/validate-write-message
Leave original ValidationException intact in write()
This commit is contained in:
commit
d81c3570af
@ -1125,7 +1125,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
||||
if (!$valid->valid()) {
|
||||
$writeException = new ValidationException(
|
||||
$valid,
|
||||
"Validation error writing a $this->class object: " . $valid->message() . ". Object not written.",
|
||||
$valid->message(),
|
||||
E_USER_WARNING
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user