Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce65fce

Browse files
author
Max Schaefer
committed
JavaScript: Abort AutoBuild if an exception happens in one of the extractor threads.
1 parent 7765c6d commit ce65fce

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,8 +671,10 @@ private void doExtract(FileExtractor extractor, Path file, ExtractorState state)
671671
long start = logBeginProcess("Extracting " + file);
672672
extractor.extract(f, state);
673673
logEndProcess(start, "Done extracting " + file);
674-
} catch (IOException e) {
675-
throw new ResourceError("Exception while extracting " + file + ".", e);
674+
} catch (Throwable t) {
675+
System.err.println("Exception while extracting " + file + ".");
676+
t.printStackTrace(System.err);
677+
System.exit(1);
676678
}
677679
}
678680

0 commit comments

Comments
 (0)