DbObject: do not hide our exceptions

This commit is contained in:
Thomas Gelf 2015-10-15 20:01:18 +02:00
parent 7ee6bca73d
commit d7c2e7dacd
1 changed files with 4 additions and 1 deletions

View File

@ -666,12 +666,15 @@ abstract class DbObject
}
} catch (Exception $e) {
if ($e instanceof IE) {
throw $e;
}
throw new IE(
'Storing %s[%s] failed: %s {%s}',
$this->table,
$this->getLogId(),
$e->getMessage(),
print_r($this->getProperties(), 1)
print_r($this->getProperties(), 1) // TODO: Remove properties
);
}
$this->modifiedProperties = array();