Update NativeUtils.java

Catch the rest of the exceptions
This commit is contained in:
Mohanned Anwar 2023-04-05 10:13:47 +03:00 committed by GitHub
parent 0df138171c
commit c51fe59e2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,9 @@ public final class NativeUtils {
} catch (NullPointerException e) { } catch (NullPointerException e) {
temp.delete(); temp.delete();
throw new FileNotFoundException("File " + path + " was not found inside JAR."); throw new FileNotFoundException("File " + path + " was not found inside JAR.");
} catch (Exception e) {
file.delete();
throw e;
} }
return temp; return temp;