diff options
| author | Adam Soltys <[email protected]> | 2020-09-05 02:01:32 -0400 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-09-08 10:43:24 -0400 |
| commit | 37162b277c49ab693a26da3e4d8aa683222bd5a9 (patch) | |
| tree | 2f75f24f42ec0cca61ff2e144689e7e06bb4a991 /lib/utils.js | |
| parent | 54904979cd33d49a607cd444194661c0fbe90ac4 (diff) | |
| download | coinos-server-37162b277c49ab693a26da3e4d8aa683222bd5a9.tar.gz coinos-server-37162b277c49ab693a26da3e4d8aa683222bd5a9.zip | |
close socket with bogus user
Diffstat (limited to 'lib/utils.js')
| -rw-r--r-- | lib/utils.js | 2 |
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; }; |
