Skip to content

Commit 7735a33

Browse files
committed
Change test error message to not show full stacktrace
1 parent 5f24520 commit 7735a33

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/java/org/mvplugins/multiverse/core/world/generators/GeneratorProvider.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,12 @@ private boolean testIsGeneratorPlugin(Plugin plugin) {
102102
} catch (Throwable t) {
103103
Logging.warning("Plugin %s threw an exception when testing if it is a generator plugin! ",
104104
plugin.getName());
105-
Logging.warning("This is NOT a bug in Multiverse. Do NOT report this to Multiverse support.");
106-
t.printStackTrace();
105+
Logging.warning("Error by plugin %s: %s", plugin.getName(), t.getMessage());
106+
Logging.warning("This is NOT a bug in Multiverse. Do NOT report this to Multiverse support. " +
107+
"Enable debug mode with `/mv debug 1` to see the full stack trace.");
108+
if (coreConfig.getGlobalDebug() >= 1) {
109+
t.printStackTrace();
110+
}
107111
// Assume it's a generator plugin since it tried to do something, most likely the id is wrong.
108112
return true;
109113
}

0 commit comments

Comments
 (0)