diff --git a/lib/restrict-route.js b/lib/restrict-route.js index 5f6b5d4..e5222b2 100644 --- a/lib/restrict-route.js +++ b/lib/restrict-route.js @@ -32,7 +32,7 @@ module.exports = function restrictRoute({route, getUser}) { return; } - res.sendStatus(401); + res.sendStatus(401, `Failed to get user info: "${error.message}"`); return; }