We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6928e75 commit 5c9c24fCopy full SHA for 5c9c24f
src/main/java/io/github/treesitter/jtreesitter/internal/ChainedLibraryLookup.java
@@ -28,8 +28,13 @@ private static SymbolLookup findLibrary(Arena arena) {
28
try {
29
var library = System.mapLibraryName("tree-sitter");
30
return SymbolLookup.libraryLookup(library, arena);
31
- } catch (IllegalArgumentException e) {
32
- return SymbolLookup.loaderLookup();
+ } catch (IllegalArgumentException ex1) {
+ try {
33
+ return SymbolLookup.loaderLookup();
34
+ } catch (UnsatisfiedLinkError ex2) {
35
+ ex1.addSuppressed(ex2);
36
+ throw ex1;
37
+ }
38
}
39
40
0 commit comments