diff --git a/backend/pkg/models/source_credential.go b/backend/pkg/models/source_credential.go index 9061c9f0c..1c24096c2 100644 --- a/backend/pkg/models/source_credential.go +++ b/backend/pkg/models/source_credential.go @@ -195,7 +195,7 @@ func (s *SourceCredential) RefreshDynamicClientAccessToken() error { var registrationTokenResponseBytes ClientRegistrationTokenResponse err = json.NewDecoder(tokenResp.Body).Decode(®istrationTokenResponseBytes) if err != nil { - return fmt.Errorf("an error occurred while parsing dynamic client token response", err) + return fmt.Errorf("an error occurred while parsing dynamic client token response: %v", err) } //update the source credential with the new access token