From: Niels Erik G. Nielsen Date: Sat, 16 Mar 2013 01:31:55 +0000 (-0400) Subject: Puts error reports back in place X-Git-Tag: v0.0.7~200 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=fccae686819a294e770f01f74849c1a55bb89c5b;p=mkjsf-moved-to-github.git Puts error reports back in place --- 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();