Add empty oauth token logging

This commit is contained in:
Zed 2023-08-31 01:31:27 +02:00
parent 282ce8b0e9
commit 82beb5da8c
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ template fetchImpl(result, fetchBody) {.dirty.} =
var account = await getGuestAccount(api) var account = await getGuestAccount(api)
if account.oauthToken.len == 0: if account.oauthToken.len == 0:
echo "[accounts] Empty oauth token, account: ", account.id
raise rateLimitError() raise rateLimitError()
try: try: