mirror of
https://github.com/xerial/snappy-java.git
synced 2025-07-24 06:24:40 +02:00
feat: add try catch block
This commit is contained in:
parent
61ad7a70b1
commit
05b4000863
@ -232,7 +232,13 @@ public class OSInfo {
|
||||
}
|
||||
|
||||
private static boolean isMusl() {
|
||||
return new File("/lib/ld-musl-x86_64.so.1").exists();
|
||||
try {
|
||||
return new File("/lib/ld-musl-x86_64.so.1").exists();
|
||||
}
|
||||
catch (Exception e) {
|
||||
System.err.println("Error while checking if ld-musl-x86_64.so.1 exists");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
static String translateOSNameToFolderName(String osName) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user