Better error reporting.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@394 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2001-10-25 01:25:06 +00:00
parent 743f4e4460
commit b9b3962420
@@ -1,5 +1,5 @@
// //
// $Id: StaticConnectionProvider.java,v 1.2 2001/09/21 03:01:46 mdb Exp $ // $Id: StaticConnectionProvider.java,v 1.3 2001/10/25 01:25:06 mdb Exp $
// //
// samskivert library - useful routines for java programs // samskivert library - useful routines for java programs
// Copyright (C) 2001 Michael Bayne // Copyright (C) 2001 Michael Bayne
@@ -182,6 +182,8 @@ public class StaticConnectionProvider implements ConnectionProvider
{ {
String value = props.getProperty(name); String value = props.getProperty(name);
if (StringUtil.blank(value)) { if (StringUtil.blank(value)) {
// augment the error message
errmsg = "Unable to get connection. " + errmsg;
throw new PersistenceException(errmsg); throw new PersistenceException(errmsg);
} }
return value; return value;