From 90318f1e1caad8ebfeae1d77d484f4bec9c83586 Mon Sep 17 00:00:00 2001 From: sauilitired Date: Sun, 26 Jul 2015 13:40:48 +0200 Subject: [PATCH] Fixes #452 --- .../intellectualcrafters/plot/commands/DebugPaste.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/intellectualcrafters/plot/commands/DebugPaste.java b/src/main/java/com/intellectualcrafters/plot/commands/DebugPaste.java index 0934d868c..859ca7ebb 100644 --- a/src/main/java/com/intellectualcrafters/plot/commands/DebugPaste.java +++ b/src/main/java/com/intellectualcrafters/plot/commands/DebugPaste.java @@ -26,7 +26,13 @@ public class DebugPaste extends SubCommand { public void run() { try { String settingsYML = HastebinUtility.upload(PS.get().configFile); - String latestLOG = HastebinUtility.upload(new File(BukkitMain.THIS.getDirectory(), "../../logs/latest.log")); + String latestLOG; + try { + latestLOG = HastebinUtility.upload(new File(BukkitMain.THIS.getDirectory(), "../../logs/latest.log")); + } catch(final Exception e) { + plr.sendMessage("&clatest.log is too big to be pasted, will ignore"); + latestLOG = "too big :("; + } StringBuilder b = new StringBuilder(); b.append("# Welcome to this paste\n# It is meant to provide us at IntellectualSites with better information about your problem\n\n# We will start with some informational files\n"); b.append("links.settings_yml: '").append(settingsYML).append("'\n");