Added #2113 Commandline - allow -onerror abort argument on -importScript

This commit is contained in:
Jindra Petřík
2023-11-05 20:00:02 +01:00
parent aecd10f630
commit cc0050f155
7 changed files with 79 additions and 18 deletions

View File

@@ -53,8 +53,10 @@ public class ConsoleAbortRetryIgnoreHandler implements AbortRetryIgnoreHandler {
return result;
}
Scanner sc = new Scanner(System.in);
Logger.getLogger(ConsoleAbortRetryIgnoreHandler.class.getName()).log(Level.SEVERE, "Error occured", thrown);
System.out.println("Error occured: " + thrown.getLocalizedMessage());
if (thrown != null) {
Logger.getLogger(ConsoleAbortRetryIgnoreHandler.class.getName()).log(Level.SEVERE, "Error occured", thrown);
System.out.println("Error occured: " + thrown.getLocalizedMessage());
}
do {
System.out.print("Select action: (A)bort, (R)Retry, (I)Ignore:");
String n = sc.nextLine();