Skip to content

Commit

Permalink
chore: make init client error more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
renlulu committed Sep 10, 2024
1 parent 2ef114f commit f4309b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion das/google_cloud_storage_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ type GoogleCloudStorageService struct {
func NewGoogleCloudStorageService(config GoogleCloudStorageServiceConfig) (StorageService, error) {
client, err := googlestorage.NewClient(context.Background(), option.WithCredentialsJSON([]byte(config.AccessToken)))
if err != nil {
return nil, err
return nil, fmt.Errorf("error creating Google Cloud Storage client: %v", err)
}
return &GoogleCloudStorageService{
operator: &GoogleCloudStorageClient{client: client},
Expand Down

0 comments on commit f4309b9

Please sign in to comment.