From fccae686819a294e770f01f74849c1a55bb89c5b Mon Sep 17 00:00:00 2001 From: "Niels Erik G. Nielsen" Date: Fri, 15 Mar 2013 21:31:55 -0400 Subject: [PATCH] Puts error reports back in place --- src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2Session.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2Session.java b/src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2Session.java index f35523e..bec9874 100644 --- a/src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2Session.java +++ b/src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2Session.java @@ -13,6 +13,7 @@ import org.apache.log4j.Logger; import com.indexdata.pz2utils4jsf.config.ConfigurationReader; import com.indexdata.pz2utils4jsf.controls.ResultsPager; +import com.indexdata.pz2utils4jsf.errors.ConfigurationError; import com.indexdata.pz2utils4jsf.errors.ConfigurationException; import com.indexdata.pz2utils4jsf.errors.ErrorHelper; import com.indexdata.pz2utils4jsf.errors.ErrorInterface; @@ -64,8 +65,7 @@ public class Pz2Session implements Pz2Interface { this.searchClient = searchClient.cloneMe(); } catch (ConfigurationException e) { - // TODO: set errors - logger.info("Found " + configurationErrors.size() + " configuration errors"); + configurationErrors.add(new ConfigurationError("Search Client","Configuration",e.getMessage(),new ErrorHelper(configReader))); } logger.info(configReader.document()); resetDataObjects(); -- 1.7.10.4