DbObject: do not hide our exceptions
This commit is contained in:
parent
7ee6bca73d
commit
d7c2e7dacd
|
@ -666,12 +666,15 @@ abstract class DbObject
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
if ($e instanceof IE) {
|
||||||
|
throw $e;
|
||||||
|
}
|
||||||
throw new IE(
|
throw new IE(
|
||||||
'Storing %s[%s] failed: %s {%s}',
|
'Storing %s[%s] failed: %s {%s}',
|
||||||
$this->table,
|
$this->table,
|
||||||
$this->getLogId(),
|
$this->getLogId(),
|
||||||
$e->getMessage(),
|
$e->getMessage(),
|
||||||
print_r($this->getProperties(), 1)
|
print_r($this->getProperties(), 1) // TODO: Remove properties
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$this->modifiedProperties = array();
|
$this->modifiedProperties = array();
|
||||||
|
|
Loading…
Reference in New Issue