W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2009

2006/unicorn/src/org/w3c/unicorn/util UnicornAuthenticator.java,1.2,1.3

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 23 Sep 2009 15:21:54 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MqTfG-00008T-L3@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/util
In directory hutz:/tmp/cvs-serv507/src/org/w3c/unicorn/util

Modified Files:
	UnicornAuthenticator.java 
Log Message:
catches all Exceptions

Index: UnicornAuthenticator.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/util/UnicornAuthenticator.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- UnicornAuthenticator.java	23 Sep 2009 15:19:36 -0000	1.2
+++ UnicornAuthenticator.java	23 Sep 2009 15:21:52 -0000	1.3
@@ -29,9 +29,7 @@
 			    username = st.nextToken();
 			    password = st.nextToken();
 			}
-		} catch (HeadlessException e) {
-			Framework.logger.error("Before sending mails you must specify a username and a password in mail.properties. If your SMTP server does not need authentication, set mail.smtp.auth to false.");
-		} catch (NoClassDefFoundError e) {
+		} catch (Exception e) {
 			Framework.logger.error("Before sending mails you must specify a username and a password in mail.properties. If your SMTP server does not need authentication, set mail.smtp.auth to false.");
 		}
 
Received on Wednesday, 23 September 2009 15:22:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:14 GMT