From d9fceaf94a667ce2d8d98d0a9d1e5ce30d78c936 Mon Sep 17 00:00:00 2001 From: Adam French Date: Sat, 22 Nov 2025 11:40:18 +0000 Subject: [PATCH] added log checking --- backend/services/spotify.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/services/spotify.go b/backend/services/spotify.go index 80a1d28..0d1b5b9 100644 --- a/backend/services/spotify.go +++ b/backend/services/spotify.go @@ -12,6 +12,7 @@ import ( func InitSpotify() (*spotify.Client, error) { ctx := context.Background() + log.Fatal("Tets") // redirectURI := os.Getenv("SPOTIFY_REDIRECT_URI") clientID := os.Getenv("SPOTIFY_CLIENT_ID") @@ -25,7 +26,7 @@ func InitSpotify() (*spotify.Client, error) { token, err := config.Token(context.Background()) if err != nil { - log.Fatalf("couldn't get token: %v", err) + return nil, err } httpClient := spotifyauth.New().Client(ctx, token)