From 053f39aab71427b7fd9600ef2341a8e4d6975fbb Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 28 Jan 2015 06:26:36 +0100 Subject: [PATCH] Abort a reaction with a failed state if an exception occurs. --- src/main/java/net/pterodactylus/rhynodge/engine/ReactionRunner.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/pterodactylus/rhynodge/engine/ReactionRunner.java b/src/main/java/net/pterodactylus/rhynodge/engine/ReactionRunner.java index 37bec10..ac25e18 100644 --- a/src/main/java/net/pterodactylus/rhynodge/engine/ReactionRunner.java +++ b/src/main/java/net/pterodactylus/rhynodge/engine/ReactionRunner.java @@ -85,6 +85,7 @@ public class ReactionRunner implements Runnable { currentState = filter.filter(currentState); } catch (Throwable t1) { logger.warn(format("Error during filter %s for %s.", filter.getClass().getSimpleName(), reaction.name()), t1); + return new FailedState(t1); } } } -- 2.7.4