Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-9483

Karaf client returns code 0 even though an error occurs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.2
    • fuse-7.1
    • Karaf
    • None
    • % %
    • Fuse 7.2 Sprint 35

      The following command always returns the code 0

      bin/client -f install-features.cli
      echo $?
      

      even though if there is an error, e.g. if the file contains

      feature:install camel-foo
      

      Here is the full result of my commands

      $ ./bin/client -f /tmp/install-features.cli
      Logging in as admin
      Error executing command: No matching features for camel-foo/0
      $ echo $?
      0
      

        1. test-ENTESB-9483.sh
          0.8 kB
          Andrej Podhradsky

              yfang@redhat.com Freeman(Yue) Fang
              apodhrad@redhat.com Andrej Podhradsky
              Andrej Podhradsky Andrej Podhradsky
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: