Skip to content

Log stack trace when expansions fail to load #1225

Description

@BlitzOffline

Confirmation

  • I checked the Issues and Pull request tab for any existing issues or PRs.
  • My Feature Request is for PlaceholderAPI and not any expansion or other plugin.

Type

Minor Code improvement (Won't affect Servers)

Description

Log proper errors when expansions fail to load:

} catch (final Exception ex) {
if (ex.getCause() instanceof LinkageError) {
throw ((LinkageError) ex.getCause());
}
Msg.warn("There was an issue with loading an expansion.");
return null;
}

Code Example

Jar file

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions