From d7c2e7dacd8132b2d67f6dd92b1344daac9d6789 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 15 Oct 2015 20:01:18 +0200 Subject: [PATCH] DbObject: do not hide our exceptions --- library/Director/Data/Db/DbObject.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/Director/Data/Db/DbObject.php b/library/Director/Data/Db/DbObject.php index aa323aee..93ac13c4 100644 --- a/library/Director/Data/Db/DbObject.php +++ b/library/Director/Data/Db/DbObject.php @@ -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();