aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils.js')
-rw-r--r--lib/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils.js b/lib/utils.js
index 17b5d134..23c811c1 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -18,7 +18,7 @@ getUser = async (username, transaction) => {
}
let user = await db.User.findOne(params);
- if (!user) throw new Error("User not found");
+ if (!user) throw new Error(`User ${username} not found`);
return user;
};