Commands should not catch exceptions but should rethrow them
------------------------------------------------------------

                 Key: KARAF-1040
                 URL: https://issues.apache.org/jira/browse/KARAF-1040
             Project: Karaf
          Issue Type: Bug
            Reporter: Guillaume Nodet


The exception should be catched by the console and printed nicely.
The {{dev:print-stack-traces}} allows users to actually see the stack trace, 
whereas if the exception is discarded, nothing can be seen.


See the example below:
{code}
karaf@root> dev:print-stack-traces 
karaf@root> feature:add-url foo
Could not add Feature Repository:
java.lang.IllegalArgumentException: invalid URI: foo
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to