Skip to content

Commit fc9e632

Browse files
committed
only print a constant when catching an OOM
1 parent 094a2b0 commit fc9e632

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,8 +1247,7 @@ private void doExtract(FileExtractor extractor, Path file, ExtractorState state)
12471247
}
12481248
logEndProcess(start, "Done extracting " + file);
12491249
} catch (OutOfMemoryError oom) {
1250-
System.err.println("Out of memory while extracting " + file + ".");
1251-
oom.printStackTrace(System.err);
1250+
System.err.println("Out of memory while extracting a file.");
12521251
System.exit(137); // caught by the CodeQL CLI
12531252
} catch (Throwable t) {
12541253
System.err.println("Exception while extracting " + file + ".");

0 commit comments

Comments
 (0)