GP-227 Handle IllegalArgumentException during batch import #2328

Fixes github issue #2328.  Catch and log IllegalArgumentException along
with the other exceptions that might be thrown by a loader.
This commit is contained in:
dev747368 2020-10-06 15:08:09 -04:00
parent 7c0b21f0dc
commit 20a7860856

View file

@ -173,7 +173,7 @@ public class ImportBatchTask extends Task {
Msg.debug(this, "Batch Import cancelled");
}
catch (DuplicateNameException | InvalidNameException | VersionException
| IOException e) {
| IOException | IllegalArgumentException e) {
Msg.error(this, "Import failed for " + batchLoadConfig.getPreferredFileName(), e);
}
}