You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Alexander Rukletsov (JIRA)" <ji...@apache.org> on 2016/05/10 17:05:13 UTC

[jira] [Updated] (MESOS-4126) Construct the error string in `MethodNotAllowed`.

     [ https://issues.apache.org/jira/browse/MESOS-4126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Rukletsov updated MESOS-4126:
---------------------------------------
    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
{code}
return MethodNotAllowed({"POST"}, "Expecting 'POST', received '" + request.method + "'");
{code}
we can write something like
{code}
MethodNotAllowed({"POST"}, request.method)
{code}


  was:
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
{code}
return MethodNotAllowed({"POST"}, "Expecting 'POST', received '" + request.method + "'");
{code}
we can write something like
{code}
MethodNotAllowed({"POST"}, request.method)`
{code}



> Construct the error string in `MethodNotAllowed`.
> -------------------------------------------------
>
>                 Key: MESOS-4126
>                 URL: https://issues.apache.org/jira/browse/MESOS-4126
>             Project: Mesos
>          Issue Type: Improvement
>            Reporter: Alexander Rukletsov
>            Assignee: Jacob Janco
>            Priority: Minor
>              Labels: http, mesosphere, newbie++
>
> 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
> {code}
> return MethodNotAllowed({"POST"}, "Expecting 'POST', received '" + request.method + "'");
> {code}
> we can write something like
> {code}
> MethodNotAllowed({"POST"}, request.method)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)