This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: more meaningful error when firebase creds not set

+4 -1
+4 -1
firebase.go
··· 119 119 } 120 120 121 121 ctxWithClient := context.WithValue(firebaseCtx, oauth2.HTTPClient, httpClient) 122 - creds, _ := google.CredentialsFromJSON(ctxWithClient, []byte(config.FirebaseServiceAccount), "https://www.googleapis.com/auth/firebase.messaging") 122 + creds, err := google.CredentialsFromJSON(ctxWithClient, []byte(config.FirebaseServiceAccount), "https://www.googleapis.com/auth/firebase.messaging") 123 + if err != nil { 124 + return fmt.Errorf("while setting credentials: %w", err) 125 + } 123 126 124 127 client := &http.Client{ 125 128 Transport: &oauth2.Transport{