From df774979f2dd5a40b6a584fef71d62932ca03a0e Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 26 Aug 2015 12:14:46 +0200 Subject: [PATCH] Actually put reaction name in email text --- src/main/java/net/pterodactylus/rhynodge/engine/ReactionRunner.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/pterodactylus/rhynodge/engine/ReactionRunner.java b/src/main/java/net/pterodactylus/rhynodge/engine/ReactionRunner.java index 2b6e6d4..e658f1b 100644 --- a/src/main/java/net/pterodactylus/rhynodge/engine/ReactionRunner.java +++ b/src/main/java/net/pterodactylus/rhynodge/engine/ReactionRunner.java @@ -48,7 +48,7 @@ public class ReactionRunner implements Runnable { State state = runQuery(); state = runStateThroughFilters(state); if (!state.success()) { - logger.info(format("Reaction %s failed.", reaction.name())); + logger.info(format("Reaction %s failed in %s.", reaction.name(), state)); saveStateWithIncreasedFailCount(state); errorEmailAction.execute(createErrorOutput(reaction, state)); return; @@ -84,7 +84,7 @@ public class ReactionRunner implements Runnable { private String createErrorEmailText(Reaction reaction, State state) { StringBuilder emailText = new StringBuilder(); - emailText.append(String.format("An error occured while processing “.”\n\n", reaction.name())); + emailText.append(String.format("An error occured while processing “%s.”\n\n", reaction.name())); appendExceptionToEmailText(state.exception(), emailText); return emailText.toString(); } -- 2.7.4