From 9ee9d4e0896dbcc5a04a367596475079f3cc30c9 Mon Sep 17 00:00:00 2001 From: Alan Green Date: Fri, 21 Sep 2018 12:42:23 +0300 Subject: [PATCH] Fix error message when wrong role --- users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users.js b/users.js index ec2b5bb..52d743d 100644 --- a/users.js +++ b/users.js @@ -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) })