XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None

      WHAT

      Define a custom error handling package which can be used instead of Echo's default.

      WHY

      The default HTTP error handling that comes with Echo is a bit verbose and could do with improvements.

      Example:

      return echo.NewHTTPError(http.StatusUnauthorized, "Please provide valid credentials")
      

      This could be improved to be like this:

      return errors.Unauthorized("Please provide valid credentials")
      

              ephelan@redhat.com Enda Phelan (Inactive)
              ephelan@redhat.com Enda Phelan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: