Improve error reporting when file-events library cannot be loaded
Closed this issue · 3 comments
lptr commented
Do not produce a large stacktrace with UnsatisfiedLinkError
, but allow the consuming code to detect the fact that the library couldn't be loaded.
/cc @gradle/execution
wolfs commented
Note that we already have some nice error handling for loading the main native platform library: https://github.com/gradle/gradle/blob/0615a8c5c685b93314e794c45359ee56d7c0ef6c/subprojects/native/src/main/java/org/gradle/internal/nativeintegration/services/NativeServices.java#L93-L109
We need to wrap this around the loading of the file events library as well.
wolfs commented
I think we should handle this on the Gradle side.
wolfs commented
We now handle the exception on the Gradle side: gradle/gradle#13549