From 5c90869971997d33b84a6bfadb924d31c3dd90fd Mon Sep 17 00:00:00 2001 From: mdb Date: Wed, 8 May 2002 23:06:06 +0000 Subject: [PATCH] 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 --- .../src/java/com/samskivert/velocity/DispatcherServlet.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/samskivert/src/java/com/samskivert/velocity/DispatcherServlet.java b/projects/samskivert/src/java/com/samskivert/velocity/DispatcherServlet.java index 12382796..67f2b1a5 100644 --- a/projects/samskivert/src/java/com/samskivert/velocity/DispatcherServlet.java +++ b/projects/samskivert/src/java/com/samskivert/velocity/DispatcherServlet.java @@ -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