Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-4126

Construct the error string in `MethodNotAllowed`.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.0
    • None

    Description

      Consider constructing the error string in MethodNotAllowed rather than at the invocation site. Currently we want all error messages follow the same pattern, so instead of writing

      return MethodNotAllowed({"POST"}, "Expecting 'POST', received '" + request.method + "'");
      

      we can write something like

      MethodNotAllowed({"POST"}, request.method)
      

      Attachments

        Activity

          People

            jjanco Jacob Janco
            alexr Alex R
            Alex R Alex R
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: