Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-7319

Error messages from CLI batch should be more informative

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 7.1.0.DR9
    • 7.1.0.DR7
    • CLI
    • None

    Description

      Description of problem:
      Error messages from CLI batch should be more informative

      Steps to Reproduce:

      cat <<EOF >a
      batch
      :read-attribute(name=product-version)
      :read-attribute(name=product-name)
      :read-attribute(name=nonsence)
      :read-attribute(name=product-name)
      run-batch
      EOF
      ./jboss-cli.sh -c --file=a
      

      Actual results:

      The batch failed with the following error (you are remaining in the batch editing mode to have a chance to correct the error): {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-3" => "WFLYCTL0201: Unknown attribute 'nonsence'"}}
      

      Expected results:
      I can imagine content like following could be helpful for troubleshooting:

      {
         "WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {
            "Operation step-3" => {
               "operation" => ":read-attribute(name=nonsence)"
               "response" => "WFLYCTL0201: Unknown attribute 'nonsence'"
         }
      }
      

      Attachments

        Issue Links

          Activity

            People

              jdenise@redhat.com Jean Francois Denise
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: