diff --git a/native/src/main/java/com/velocitypowered/natives/util/Natives.java b/native/src/main/java/com/velocitypowered/natives/util/Natives.java index 44329434a..a3a229037 100644 --- a/native/src/main/java/com/velocitypowered/natives/util/Natives.java +++ b/native/src/main/java/com/velocitypowered/natives/util/Natives.java @@ -37,7 +37,12 @@ public class Natives { // Well, it doesn't matter... } })); - System.load(tempFile.toAbsolutePath().toString()); + + try { + System.load(tempFile.toAbsolutePath().toString()); + } catch (UnsatisfiedLinkError e) { + throw new NativeSetupException("Unable to load native " + tempFile.toAbsolutePath(), e); + } } catch (IOException e) { throw new NativeSetupException("Unable to copy natives", e); }