diff --git a/src/main/java/de/gebit/plugins/autoconfig/AutoconfigStartup.java b/src/main/java/de/gebit/plugins/autoconfig/AutoconfigStartup.java index eb0044f..9415a42 100644 --- a/src/main/java/de/gebit/plugins/autoconfig/AutoconfigStartup.java +++ b/src/main/java/de/gebit/plugins/autoconfig/AutoconfigStartup.java @@ -76,11 +76,9 @@ private List processUpdateHandler(@NotNull Project project, UpdateHa try { return updateHandler.updateConfiguration(extensionConfiguration.get(), project); } catch (Exception e) { - LOG.error("An error occurred trying to process configuration updates for \"{}\"", e, - updateHandler.getUpdaterName()); - Notifications.showError( - "An error occurred trying to process configuration updates for \"" + updateHandler.getUpdaterName() + "\"", - project); + String errorMessage = "An error occurred trying to process configuration updates for \"" + updateHandler.getUpdaterName() + "\""; + LOG.error(errorMessage, e); + Notifications.showError(errorMessage, project); } } else { LOG.info("No configuration for " + updateHandler.getUpdaterName() + " found.");