JavaScript: Abort AutoBuild if an exception happens in one of the extractor threads.

This commit is contained in:
Max Schaefer
2018-11-30 13:00:48 +00:00
parent 7765c6d486
commit ce65fcedc1

View File

@@ -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);
}
}