Skip to content

Commit

Permalink
Fix error message when wrong role
Browse files Browse the repository at this point in the history
  • Loading branch information
alanggreen committed Sep 21, 2018
1 parent c727b5f commit 9ee9d4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion users.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports.get = function (username, req) {
return config.get(username, req)
.then(password => {
if (!password) {
throw new Error('User not found')
throw new Error('Unknown role')
}
return generateUser(username, password)
})
Expand Down

0 comments on commit 9ee9d4e

Please sign in to comment.