1
0
mirror of https://github.com/labstack/echo.git synced 2025-11-29 22:48:07 +02:00

Fixed panic messages

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2017-06-22 22:48:23 -07:00
parent 7c614588bc
commit 06189d002b
4 changed files with 4 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ func BodyDump(handler BodyDumpHandler) echo.MiddlewareFunc {
func BodyDumpWithConfig(config BodyDumpConfig) echo.MiddlewareFunc {
// Defaults
if config.Handler == nil {
panic("body-dump middleware requires a handler function")
panic("echo: body-dump middleware requires a handler function")
}
if config.Skipper == nil {
config.Skipper = DefaultBodyDumpConfig.Skipper