Create error message for correct state
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 26 Aug 2015 08:25:03 +0000 (10:25 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 26 Aug 2015 08:25:03 +0000 (10:25 +0200)
src/main/java/net/pterodactylus/rhynodge/engine/ReactionRunner.java

index 63711b9..2b6e6d4 100644 (file)
@@ -120,7 +120,7 @@ public class ReactionRunner implements Runnable {
                                try {
                                        currentState = filter.filter(currentState);
                                        if (currentState.success() && currentState.isEmpty()) {
-                                               errorEmailAction.execute(createEmptyStateOutput(reaction, state));
+                                               errorEmailAction.execute(createEmptyStateOutput(reaction, currentState));
                                        }
                                } catch (Throwable t1) {
                                        logger.warn(format("Error during filter %s for %s.", filter.getClass().getSimpleName(), reaction.name()), t1);