From: David ‘Bombe’ Roden Date: Wed, 28 Jan 2015 05:26:36 +0000 (+0100) Subject: Abort a reaction with a failed state if an exception occurs. X-Git-Tag: v2~210 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=053f39aab71427b7fd9600ef2341a8e4d6975fbb;p=rhynodge.git Abort a reaction with a failed state if an exception occurs. --- 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); } } }