Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #106 from LabShare/kv_add_error_message_userinfo_r…
Browse files Browse the repository at this point in the history
…equest

fix(api): add descriptive error for restrictRoute middleware userinfo…
  • Loading branch information
KalleV committed Jun 8, 2020
2 parents 59fd41c + 28a10ed commit 2a8c890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/restrict-route.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2a8c890

Please sign in to comment.