This commit is contained in:
Xephi
2016-02-05 13:24:38 +01:00
parent e8a9b5c2e2
commit 4f76398ce8
15 changed files with 50 additions and 77 deletions
@@ -77,8 +77,7 @@ public abstract class CustomConfiguration extends YamlConfiguration {
return true;
}
} catch (Exception e) {
ConsoleLogger.writeStackTrace(e);
ConsoleLogger.showError("Failed to load config from JAR");
ConsoleLogger.writeStackTrace("Failed to load config from JAR", e);
}
}
return false;
@@ -313,8 +313,7 @@ public final class Settings {
try {
return Files.toString(EMAIL_FILE, Charsets.UTF_8);
} catch (IOException e) {
ConsoleLogger.showError("Error loading email text: " + StringUtils.formatException(e));
ConsoleLogger.writeStackTrace(e);
ConsoleLogger.writeStackTrace("Error loading email text: " + StringUtils.formatException(e), e);
return "";
}
}
@@ -129,8 +129,7 @@ public class NewSetting {
writer.flush();
writer.close();
} catch (IOException e) {
ConsoleLogger.showError("Could not save config file - " + StringUtils.formatException(e));
ConsoleLogger.writeStackTrace(e);
ConsoleLogger.writeStackTrace("Could not save config file - " + StringUtils.formatException(e), e);
}
}