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)