Changed #2113 Commandline -importScript command aborts import on first error,

can be changed with `-onerror ignore` argument
This commit is contained in:
Jindra Petřík
2023-11-05 20:25:49 +01:00
parent b8aec6c2af
commit 0c8412408d
2 changed files with 3 additions and 2 deletions

View File

@@ -4234,7 +4234,7 @@ public class CommandLineArgumentParser {
@Override
public void scriptImportError() {
if (errorHandler != null && ((ConsoleAbortRetryIgnoreHandler) errorHandler).errorMode == AbortRetryIgnoreHandler.ABORT) {
if (errorHandler == null || ((ConsoleAbortRetryIgnoreHandler) errorHandler).errorMode == AbortRetryIgnoreHandler.ABORT) {
System.exit(1);
}
}