Skip to content

Commit 47b7ae4

Browse files
authored
fix(gateway): print details of error to the client during JWT auth (#291)
Signed-off-by: Artur Troian <[email protected]> Co-authored-by: Artur Troian <[email protected]>
1 parent 7dc26e5 commit 47b7ae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gateway/rest/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func DefaultErrorHandler(w http.ResponseWriter, _ *http.Request, err error) {
7979
_, _ = w.Write([]byte(`{"message":"invalid request"}`))
8080
default:
8181
w.WriteHeader(http.StatusInternalServerError)
82-
_, _ = w.Write([]byte(`{"message":"Something went wrong while checking the JWT"}`))
82+
_, _ = w.Write([]byte(fmt.Sprintf(`{"message":"unknown error while processing JWT. %s"}`, err.Error())))
8383
}
8484
}
8585

0 commit comments

Comments
 (0)