Complain if we're not able to load the velocity properties.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@730 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2002-05-08 23:06:06 +00:00
parent 0b6a52388d
commit 5c90869971
@@ -1,5 +1,5 @@
//
// $Id: DispatcherServlet.java,v 1.18 2002/05/02 21:41:54 shaper Exp $
// $Id: DispatcherServlet.java,v 1.19 2002/05/08 23:06:06 mdb Exp $
//
// samskivert library - useful routines for java programs
// Copyright (C) 2001 Michael Bayne
@@ -200,6 +200,10 @@ public class DispatcherServlet extends VelocityServlet
// config util loads properties files from the classpath
Properties props = ConfigUtil.loadProperties(propsPath);
if (props == null) {
throw new IOException("Unable to load velocity properties " +
"from file '" + INIT_PROPS_KEY + "'.");
}
// wire up our site resource manager if a site-specific jar file
// path was provided