Error return bug

This commit is contained in:
aunefyren 2023-10-31 08:32:13 +01:00
parent 245957e1bb
commit f31d4206b8

View file

@ -267,7 +267,7 @@ func ApiWrapperGetStatistics(context *gin.Context) {
}
if !UserNameFound {
log.Println("Failed to find user in Tautulli. Error: " + err.Error())
log.Println("Failed to find user in Tautulli.")
context.JSON(http.StatusInternalServerError, gin.H{"error": "Could not find a matching user."})
context.Abort()
return