You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2020/07/09 18:38:46 UTC

[sling-org-apache-sling-jcr-repoinit] branch feature/SLING-9572 updated: Parsing can throw additional unwrapped exceptions for things like number formats

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

dklco pushed a commit to branch feature/SLING-9572
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-repoinit.git


The following commit(s) were added to refs/heads/feature/SLING-9572 by this push:
     new 243b73e  Parsing can throw additional unwrapped exceptions for things like number formats
243b73e is described below

commit 243b73eb413e369eda7a19bee6f5f0da56d62c53
Author: Dan Klco <dk...@apache.org>
AuthorDate: Thu Jul 9 14:38:34 2020 -0400

    Parsing can throw additional unwrapped exceptions for things like number formats
---
 .../java/org/apache/sling/jcr/repoinit/impl/RepoInitWebConsole.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/jcr/repoinit/impl/RepoInitWebConsole.java b/src/main/java/org/apache/sling/jcr/repoinit/impl/RepoInitWebConsole.java
index 4e9f48f..b98b383 100644
--- a/src/main/java/org/apache/sling/jcr/repoinit/impl/RepoInitWebConsole.java
+++ b/src/main/java/org/apache/sling/jcr/repoinit/impl/RepoInitWebConsole.java
@@ -128,7 +128,7 @@ public class RepoInitWebConsole extends AbstractWebConsolePlugin {
             operations = parser.parse(statements);
             messages.add("PARSING SUCCEEDED: ");
             operations.stream().map(Operation::toString).forEach(messages::add);
-        } catch (RepoInitParsingException e) {
+        } catch (Exception e) {
             messages.add("PARSING FAILED: ");
             messages.add(e.toString());
         }