aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utils.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-09-05 02:01:32 -0400
committerAdam Soltys <[email protected]>2020-09-08 10:43:24 -0400
commit37162b277c49ab693a26da3e4d8aa683222bd5a9 (patch)
tree2f75f24f42ec0cca61ff2e144689e7e06bb4a991 /lib/utils.js
parent54904979cd33d49a607cd444194661c0fbe90ac4 (diff)
downloadcoinos-server-37162b277c49ab693a26da3e4d8aa683222bd5a9.tar.gz
coinos-server-37162b277c49ab693a26da3e4d8aa683222bd5a9.zip
close socket with bogus user
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;
};