aboutsummaryrefslogtreecommitdiff
path: root/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/ResourceManagerImpl.java
diff options
context:
space:
mode:
authorClaude Brisson <cbrisson@apache.org>2019-09-08 10:42:47 +0000
committerClaude Brisson <cbrisson@apache.org>2019-09-08 10:42:47 +0000
commit5782c4cfa7beab546f778d51d5af2c3503e76aec (patch)
tree5bd4ca076135fa41f3d8be47c15cba1f323d3312 /velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/ResourceManagerImpl.java
parentacf40deb4da66c5852b16244f3d818e46ed2b7c2 (diff)
downloadapache-velocity-engine-5782c4cfa7beab546f778d51d5af2c3503e76aec.tar.gz
[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
Diffstat (limited to 'velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/ResourceManagerImpl.java')
-rw-r--r--velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/ResourceManagerImpl.java4
1 files changed, 2 insertions, 2 deletions
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());
}
/*