Details

      Description

      Currently, the code for e.g. `/service` endpoint handling does it in a very rudimentary way [1]. With the improvements of the error handling introduced in [2] it is now possible to replace all the block like [1] with a call to `util.exit_by_code`. The only thing that is needed is a way to handle custom error messages - making error pages accept the reason for the error as a parameter.

      Acceptance criteria: All AR code uses `util.exit_by_code` call for emitting errors to the user.

      [1] https://github.com/dcos/dcos/blob/94c1bf8b5d79900d43ce6421b91b1cc01920460d/packages/adminrouter/extra/src/lib/service.lua#L286-L288
      [2] https://github.com/dcos/dcos/pull/2154

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              prozlach Pawel Rozlach
              Team:
              Mesosphere
              Watchers:
              Jan-Philip Gehrcke (Inactive), Pawel Rozlach
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: