mirror of
https://github.com/github/codeql.git
synced 2026-01-07 19:50:22 +01:00
JavaScript: Abort AutoBuild if an exception happens in one of the extractor threads.
This commit is contained in:
@@ -671,8 +671,10 @@ public class AutoBuild {
|
||||
long start = logBeginProcess("Extracting " + file);
|
||||
extractor.extract(f, state);
|
||||
logEndProcess(start, "Done extracting " + file);
|
||||
} catch (IOException e) {
|
||||
throw new ResourceError("Exception while extracting " + file + ".", e);
|
||||
} catch (Throwable t) {
|
||||
System.err.println("Exception while extracting " + file + ".");
|
||||
t.printStackTrace(System.err);
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user