From 85970d0214a8386711d552b3fdaa7acdf777f2c8 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Wed, 17 Nov 2021 22:53:52 +0100 Subject: [PATCH] return error on player not found --- utils/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/utils.go b/utils/utils.go index acd30f7..a58f4c6 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -622,7 +622,7 @@ func PlayerFromSteamID64(db *ent.Client, steamID uint64, apiKey string, rl ratel return nPlayer, nil } - return nil, nil + return nil, fmt.Errorf("player %d not found", steamID) } }