From 5782c4cfa7beab546f778d51d5af2c3503e76aec Mon Sep 17 00:00:00 2001 From: Claude Brisson Date: Sun, 8 Sep 2019 10:42:47 +0000 Subject: [VELOCITY-916] Add a second effect for the debugging flag runtime.log.track_location: display VTL stacktrace on errors git-svn-id: https://svn.apache.org/repos/asf/velocity/engine/trunk@1866609 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/velocity/runtime/resource/ResourceManagerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/ResourceManagerImpl.java') diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/ResourceManagerImpl.java b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/ResourceManagerImpl.java index eb7054de..472286bc 100644 --- a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/ResourceManagerImpl.java +++ b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/ResourceManagerImpl.java @@ -132,7 +132,7 @@ public class ResourceManagerImpl ".class' specification in configuration." + " This is a critical value. Please adjust configuration."; log.error(msg); - throw new VelocityException(msg); + throw new VelocityException(msg, null, rsvc.getLogContext().getStackTrace()); } resourceLoader.commonInit(rsvc, configuration); @@ -458,7 +458,7 @@ public class ResourceManagerImpl */ if (resource.getData() == null) { - throw new ResourceNotFoundException("Unable to find resource '" + resourceName + "'"); + throw new ResourceNotFoundException("Unable to find resource '" + resourceName + "'", null, rsvc.getLogContext().getStackTrace()); } /* -- cgit v1.2.3