From 71ad90ea2f0c833e61a508aec2f62c6ca86bb0eb Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Fri, 27 Nov 2020 15:17:31 +0100 Subject: [PATCH] Fixing Error Logging --- src/de/steamwar/bungeecore/sql/PollAnswer.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/de/steamwar/bungeecore/sql/PollAnswer.java b/src/de/steamwar/bungeecore/sql/PollAnswer.java index 72c462f..62fcee0 100644 --- a/src/de/steamwar/bungeecore/sql/PollAnswer.java +++ b/src/de/steamwar/bungeecore/sql/PollAnswer.java @@ -50,8 +50,7 @@ public class PollAnswer { return new PollAnswer(userID, PollSystem.getQuestion()); return new PollAnswer(rs); } catch (SQLException e) { - BungeeCore.log("Unable to get PollAnswer", e); - throw new SecurityException(); + throw new SecurityException("Unable to get PollAnswer", e); } } @@ -64,8 +63,7 @@ public class PollAnswer { } return retMap; }catch (SQLException e) { - BungeeCore.log("Unable to get PollAnswer", e); - throw new SecurityException(); + throw new SecurityException("Unable to get PollAnswer", e); } } @@ -76,8 +74,7 @@ public class PollAnswer { throw new SecurityException("Could not get PollAnswers"); return set.getInt("Times"); }catch (SQLException e) { - BungeeCore.log("Unable to get PollAnswer", e); - throw new SecurityException(); + throw new SecurityException("Unable to get PollAnswer", e); } }