diff options
Diffstat (limited to 'app/Tree.php')
| -rw-r--r-- | app/Tree.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Tree.php b/app/Tree.php index 3ce0add7ca..fd56e3a3a4 100644 --- a/app/Tree.php +++ b/app/Tree.php @@ -411,6 +411,8 @@ class Tree { )->execute([$tree_name]); $tree_id = Database::prepare("SELECT LAST_INSERT_ID()")->fetchOne(); } catch (PDOException $ex) { + DebugBar::addThrowable($ex); + // A tree with that name already exists? return self::findByName($tree_name); } |
