catch all exceptions while applying a patch

This commit is contained in:
Konstantin Bulenkov
2016-12-07 19:27:12 +01:00
parent 79a3a06a4b
commit 498673eb26
+4 -4
View File
@@ -302,9 +302,9 @@ public class Runner {
Map<String, ValidationResult.Option> options = ui.askUser(result.validationResults);
return PatchFileCreator.apply(result, options, ui);
}
catch (IOException e) {
ui.showError(e);
catch (Throwable e) {
printStackTrace(e);
ui.showError(e);
}
}
finally {
@@ -312,9 +312,9 @@ public class Runner {
System.gc();
cleanup(ui);
}
catch (IOException e) {
ui.showError(e);
catch (Throwable e) {
printStackTrace(e);
ui.showError(e);
}
}