From a9883efc4a67f0f7ae9aacc9c5a3d56f05064266 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 31 Jan 2018 08:52:21 +0000 Subject: [PATCH] Improve error messages on authentication failure --- web/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/auth.go b/web/auth.go index b0a70d54..592bf3b2 100644 --- a/web/auth.go +++ b/web/auth.go @@ -447,6 +447,6 @@ func checkBearer(c *fibre.Context, info string, callback func() error) (err erro } - return fibre.NewHTTPError(401).WithMessage("Invalid authentication details") + return fibre.NewHTTPError(401).WithMessage("Invalid authentication details: " + err.Error()) }