Skip to content

Commit f85d3e8

Browse files
ARM support: print machine type if loading native library fails.
1 parent a6571ae commit f85d3e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

objectbox-java/src/main/java/io/objectbox/internal/NativeLibraryLoader.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,9 @@ public class NativeLibraryLoader {
105105
String osArch = System.getProperty("os.arch");
106106
String sunArch = System.getProperty("sun.arch.data.model");
107107
String message = String.format(
108-
"Loading ObjectBox native library failed: vendor=%s,os=%s,os.arch=%s,sun.arch=%s,android=%s,linux=%s",
109-
vendor, osName, osArch, sunArch, android, isLinux
108+
"[ObjectBox] Loading native library failed, please report this to us: " +
109+
"vendor=%s,os=%s,os.arch=%s,model=%s,android=%s,linux=%s,machine=%s",
110+
vendor, osName, osArch, sunArch, android, isLinux, getCpuArchOSOrNull()
110111
);
111112
throw new LinkageError(message, e); // UnsatisfiedLinkError does not allow a cause; use its super class
112113
}

0 commit comments

Comments
 (0)