Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-1040

Commands should not catch exceptions but should rethrow them

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0, 3.0.0
    • None
    • None

    Description

      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:

      karaf@root> dev:print-stack-traces 
      karaf@root> feature:add-url foo
      Could not add Feature Repository:
      java.lang.IllegalArgumentException: invalid URI: foo
      

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            gnodet Guillaume Nodet
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: