This is an automated email from the ASF dual-hosted git repository.

dklco pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git


The following commit(s) were added to refs/heads/master by this push:
     new 0b861b2  Fixed the handler throwing an exception if the original 
Throwable was not an Exception
0b861b2 is described below

commit 0b861b23471d25ac682323631e2362fae41fbc07
Author: Dan Klco <[email protected]>
AuthorDate: Tue Sep 18 08:13:33 2018 -0400

    Fixed the handler throwing an exception if the original Throwable was not 
an Exception
---
 core/src/main/java/org/apache/sling/cms/core/models/ErrorHandler.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/core/src/main/java/org/apache/sling/cms/core/models/ErrorHandler.java 
b/core/src/main/java/org/apache/sling/cms/core/models/ErrorHandler.java
index 1688ccb..ac0ba8d 100644
--- a/core/src/main/java/org/apache/sling/cms/core/models/ErrorHandler.java
+++ b/core/src/main/java/org/apache/sling/cms/core/models/ErrorHandler.java
@@ -85,7 +85,7 @@ public class ErrorHandler {
 
         if (slingRequest.getAttribute(SlingConstants.ERROR_EXCEPTION) != null) 
{
             log.warn("Handing exception of type {}", errorCode,
-                    (Exception) 
slingRequest.getAttribute(SlingConstants.ERROR_EXCEPTION));
+                    (Throwable) 
slingRequest.getAttribute(SlingConstants.ERROR_EXCEPTION));
         }
 
         calculateErrorCode(resolver);

Reply via email to