mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2026-07-21 14:04:29 +02:00
Merge pull request #1235 from PlaceholderAPI/feat/expansion-logging-improvements
fix(logging): improve local expansion failure diagnostics
This commit is contained in:
@@ -94,7 +94,7 @@ public final class LocalExpansionManager implements Listener {
|
|||||||
this.folder = new File(plugin.getDataFolder(), EXPANSIONS_FOLDER_NAME);
|
this.folder = new File(plugin.getDataFolder(), EXPANSIONS_FOLDER_NAME);
|
||||||
|
|
||||||
if (!this.folder.exists() && !folder.mkdirs()) {
|
if (!this.folder.exists() && !folder.mkdirs()) {
|
||||||
Msg.warn("Failed to create expansions folder!");
|
plugin.getLogger().warning("Failed to create expansions folder!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -455,7 +455,7 @@ public final class LocalExpansionManager implements Listener {
|
|||||||
throw ((LinkageError) ex.getCause());
|
throw ((LinkageError) ex.getCause());
|
||||||
}
|
}
|
||||||
|
|
||||||
Msg.warn("There was an issue with loading an expansion.");
|
Msg.severe("Failed to create expansion instance for class %s.", ex, clazz.getName());
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user