only print a constant when catching an OOM

This commit is contained in:
erik-krogh
2023-03-02 22:13:45 +01:00
parent 094a2b0c46
commit fc9e63275f

View File

@@ -1247,8 +1247,7 @@ protected DependencyInstallationResult preparePackagesAndDependencies(Set<Path>
}
logEndProcess(start, "Done extracting " + file);
} catch (OutOfMemoryError oom) {
System.err.println("Out of memory while extracting " + file + ".");
oom.printStackTrace(System.err);
System.err.println("Out of memory while extracting a file.");
System.exit(137); // caught by the CodeQL CLI
} catch (Throwable t) {
System.err.println("Exception while extracting " + file + ".");