Skip to content

Commit

Permalink
Merge pull request #6 from FirstLegoLeague/fix-role-message
Browse files Browse the repository at this point in the history
Fix error message when wrong role given
  • Loading branch information
alanggreen authored Oct 8, 2018
2 parents 2c6df51 + 9ee9d4e commit f6702c7
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 f6702c7

Please sign in to comment.