Author: toad
Date: 2007-06-29 18:35:58 +0000 (Fri, 29 Jun 2007)
New Revision: 13830

Modified:
   trunk/freenet/src/freenet/clients/http/ConfigToadlet.java
Log:
Don't mention the class if it's just an error in the parameter the user 
specified

Modified: trunk/freenet/src/freenet/clients/http/ConfigToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/ConfigToadlet.java   2007-06-29 
18:25:53 UTC (rev 13829)
+++ trunk/freenet/src/freenet/clients/http/ConfigToadlet.java   2007-06-29 
18:35:58 UTC (rev 13830)
@@ -11,6 +11,7 @@
 import freenet.config.BooleanOption;
 import freenet.config.Config;
 import freenet.config.EnumerableOptionCallback;
+import freenet.config.InvalidConfigValueException;
 import freenet.config.Option;
 import freenet.config.SubConfig;
 import freenet.l10n.L10n;
@@ -73,7 +74,9 @@
                                                if(logMINOR) Logger.minor(this, 
"Setting "+prefix+ '.' +configName+" to "+value);
                                                try{
                                                        o[j].setValue(value);
-                                               }catch(Exception e){
+                                               } catch 
(InvalidConfigValueException e) {
+                                                       
errbuf.append(o[j].getName()).append(e.getMessage()).append('\n');
+                                               } catch (Exception e){
                             errbuf.append(o[j].getName()).append(' 
').append(e).append('\n');
                                                        Logger.error(this, 
"Caught "+e, e);
                                                }


Reply via email to