From 7d7994e37143acdac5ba0d49e40ce9b977cc0ec8 Mon Sep 17 00:00:00 2001 From: dragongoose Date: Sat, 2 Dec 2023 11:49:22 -0500 Subject: [PATCH] Fix error not being returned properly --- routes/api/users/users.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routes/api/users/users.go b/routes/api/users/users.go index b042e61..d8bd750 100644 --- a/routes/api/users/users.go +++ b/routes/api/users/users.go @@ -37,11 +37,13 @@ func Routes(route *gin.Engine) { err := context.ShouldBindJSON(&f) if err != nil { context.Error(err) + return } data, err := twitch.GetBulkStreamerInfo(f.Streamers) if err != nil { context.Error(err) + return } context.JSON(200, extractor.FormatMessage(data, true)) })