@@ -235,15 +235,15 @@ func NewDialer(ctx context.Context, opts ...Option) (*Dialer, error) {
235235 Scopes : []string {sqladmin .SqlserviceAdminScope },
236236 })
237237 if err != nil {
238- return nil , fmt .Errorf ("failed to create default credentials: %v " , err )
238+ return nil , fmt .Errorf ("failed to create default credentials: %w " , err )
239239 }
240240 cfg .authCredentials = c
241241 // create second set of credentials, scoped for IAM AuthN login only
242242 scoped , err := credentials .DetectDefault (& credentials.DetectOptions {
243243 Scopes : []string {iamLoginScope },
244244 })
245245 if err != nil {
246- return nil , fmt .Errorf ("failed to create scoped credentials: %v " , err )
246+ return nil , fmt .Errorf ("failed to create scoped credentials: %w " , err )
247247 }
248248 cfg .iamLoginTokenProvider = scoped .TokenProvider
249249 }
@@ -265,7 +265,7 @@ func NewDialer(ctx context.Context, opts ...Option) (*Dialer, error) {
265265 UniverseDomain : cfg .getClientUniverseDomain (),
266266 })
267267 if err != nil {
268- return nil , fmt .Errorf ("failed to create auth client: %v " , err )
268+ return nil , fmt .Errorf ("failed to create auth client: %w " , err )
269269 }
270270 // If callers have not provided an HTTPClient explicitly with
271271 // WithHTTPClient, then use auth client
@@ -282,7 +282,7 @@ func NewDialer(ctx context.Context, opts ...Option) (*Dialer, error) {
282282
283283 client , err := sqladmin .NewService (ctx , cfg .sqladminOpts ... )
284284 if err != nil {
285- return nil , fmt .Errorf ("failed to create sqladmin client: %v " , err )
285+ return nil , fmt .Errorf ("failed to create sqladmin client: %w " , err )
286286 }
287287
288288 dc := dialConfig {
0 commit comments