mirror of
https://github.com/xerial/snappy-java.git
synced 2025-07-25 15:04:32 +02:00
feat: add try catch block
This commit is contained in:
parent
61ad7a70b1
commit
05b4000863
@ -232,8 +232,14 @@ public class OSInfo {
|
||||
}
|
||||
|
||||
private static boolean isMusl() {
|
||||
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) {
|
||||
if(osName.contains("Windows")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user