Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-807

Pretty-print error messages

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • 2.0.4
    • None
    • restconf-nb

      When we are formatting out error reports we tack them into a single line, which renders them a bit user-unfriendly:

      {"errors":{"error":[{"error-tag":"malformed-message","error-info":"Failed to lookup prefix ","error-message":"Error parsing json input: Failed to lookup prefix ","error-type":"protocol"}]}}

      Update the implementation so that it looks something like this:

      {
         "errors" : {
            "error" : [
               {
                  "error-type" : "protocol",
                  "error-tag" : "malformed-message",
                  "error-info" : "Failed to lookup prefix ",
                  "error-message" : "Error parsing json input: Failed to lookup prefix "
               }
            ]
         }
      }
      

            dominik.vrbovsky Dominik Vrbovský
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: