Avoid using Exception#printStackTrace() in WebManager

This commit is contained in:
Florian CUNY 2019-05-08 16:14:32 +02:00
parent d42d0118d7
commit 96464138f5

View File

@ -65,7 +65,8 @@ public class WebManager {
catalog.getAsJsonArray("gamemodes").forEach(gamemode -> gamemodesCatalog.add(gamemode.getAsJsonObject()));
catalog.getAsJsonArray("addons").forEach(addon -> addonsCatalog.add(addon.getAsJsonObject()));
} catch (Exception e) {
e.printStackTrace();
plugin.logError("An error occurred when downloading or parsing data from GitHub...");
plugin.logStacktrace(e);
}
});
}