Skip to content

Setting "Debug = true" no longer passes errors to client #817

Closed
@JosefWN

Description

@JosefWN

Description

All errors from the server to the client are now "Internal server error" with "server.Debug = true", it used to be detailed error messages, which were very useful in debugging.

Checklist

  • [ x ] Dependencies installed
  • [ x ] No typos
  • [ x ] Searched existing issues and docs

Expected behaviour

Detailed error messages.

Actual behaviour

Only the error type is shown.

Steps to reproduce

Cause an error with "Debug = true" set, check on the client side / browser to see the error.

Working code to debug

Something like this should do:

  server := echo.New()
  server.Debug = true
  server.Use(mw.Recover())
  server.Use(mw.Gzip())
  server.Any("/*", func(c echo.Context) (err error) {
    return errors.New("This is my error message")
  })

Version/commit

Trunk from about 1 week ago.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions