return error on player not found
This commit is contained in:
@@ -622,7 +622,7 @@ func PlayerFromSteamID64(db *ent.Client, steamID uint64, apiKey string, rl ratel
|
|||||||
return nPlayer, nil
|
return nPlayer, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil, nil
|
return nil, fmt.Errorf("player %d not found", steamID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user