From f31d4206b89ce50a428afe23d67a254713f98a76 Mon Sep 17 00:00:00 2001 From: aunefyren Date: Tue, 31 Oct 2023 08:32:13 +0100 Subject: [PATCH] Error return bug --- routes/both.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/both.go b/routes/both.go index 8635ca1..ab3423d 100644 --- a/routes/both.go +++ b/routes/both.go @@ -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