From 8d8af6c7de1aeb96553cbdef24db05edf36b30c3 Mon Sep 17 00:00:00 2001 From: Nick Schuch Date: Thu, 23 Nov 2023 14:40:11 +1000 Subject: [PATCH] Fix linting --- internal/server/callback.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/server/callback.go b/internal/server/callback.go index 55d5c3f..096b8e0 100644 --- a/internal/server/callback.go +++ b/internal/server/callback.go @@ -64,6 +64,10 @@ func (s *DashboardServer) Callback(c *gin.Context) { IdentityPool: s.config.IdentityPool, IdentityProvider: s.config.IdentityProvider, }) + if err != nil { + c.String(http.StatusInternalServerError, err.Error()) + return + } dashboardURL := cloudwatchdashboard.GetURI(s.config.Region, dashboardName)