Throw an exception, if Query in ReactionHandler failed
authorJoshua Rüsweg <ruesweg@woltlab.com>
Tue, 24 Dec 2019 12:41:04 +0000 (13:41 +0100)
committerJoshua Rüsweg <ruesweg@woltlab.com>
Tue, 24 Dec 2019 12:42:59 +0000 (13:42 +0100)
wcfsetup/install/files/lib/system/reaction/ReactionHandler.class.php

index 355f2df153f028c9e3f43c36997e7f1b1f51a9f6..0a71af9f75bcd17169f3e15a6d16889f5e736bd2 100644 (file)
@@ -380,11 +380,12 @@ class ReactionHandler extends SingletonFactory {
                }
                catch (DatabaseQueryException $e) {
                        WCF::getDB()->rollBackTransaction();
+                       
+                       throw $e;
                }
                
-               return [
-                       'cachedReactions' => [],
-               ];
+               /** @noinspection PhpUnreachableStatementInspection */
+               throw new \LogicException('Unreachable');
        }
        
        /**