Karaf
  1. Karaf
  2. KARAF-1040

Commands should not catch exceptions but should rethrow them

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.0, 3.0.0
    • Component/s: None
    • Labels:
      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
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Guillaume Nodet
            Reporter:
            Guillaume Nodet
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development