Skip to content

Commit

Permalink
Merge pull request kitodo#5863 from effective-webwork/import-configur…
Browse files Browse the repository at this point in the history
…ation-exception

Handle potential ConfigException during catalogue configuration import
  • Loading branch information
solth authored Jan 23, 2024
2 parents ce51a2b + 08f58ad commit 16490fa
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.kitodo.config.OPACConfig;
import org.kitodo.data.database.beans.ImportConfiguration;
import org.kitodo.data.database.exceptions.DAOException;
import org.kitodo.exceptions.ConfigException;
import org.kitodo.exceptions.ImportConfigurationInUseException;
import org.kitodo.production.enums.ObjectType;
import org.kitodo.production.helper.Helper;
Expand Down Expand Up @@ -96,6 +97,8 @@ public void startCatalogConfigurationImport() {
PrimeFaces.current().executeScript("PF('importCatalogConfigurationsDialog').show();");
} catch (ConfigurationException e) {
Helper.setErrorMessage(e.getMessage() + ": " + e.getCause().getMessage());
} catch (ConfigException e) {
Helper.setErrorMessage(e.getMessage());
}
}
}

0 comments on commit 16490fa

Please sign in to comment.