diff options
| author | Adam Soltys <[email protected]> | 2024-01-16 17:46:40 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-01-16 17:46:40 +0000 |
| commit | 3563e3ce82200abbdc06b3ffb832e2ba6cf7f659 (patch) | |
| tree | f2f1d1d766145f9376805acb80e48202136e1441 /lib/utils.js | |
| parent | 5d6847e533210f713e181146f2e60aaa51b74150 (diff) | |
| download | coinos-server-3563e3ce82200abbdc06b3ffb832e2ba6cf7f659.tar.gz coinos-server-3563e3ce82200abbdc06b3ffb832e2ba6cf7f659.zip | |
log user errors
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 7b468f3b..d286d093 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -67,6 +67,6 @@ export let fields = [ export let getUser = async (username) => { let user = await migrate(username); - if (!user || username === "undefined") fail("user not found"); + if (!user || username === "undefined") fail(`user ${username} not found`); return user; }; |
