Skip to content

Commit

Permalink
chore: wrap error using %w
Browse files Browse the repository at this point in the history
  • Loading branch information
rahmatrhd committed Aug 10, 2022
1 parent af01d49 commit 7a4f935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/providers/gcloudiam/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func (c *Config) validatePermissions(resource *domain.ResourceConfig, client Gcl
for _, p := range ro.Permissions {
permission := fmt.Sprint(p)
if _, ok := rolesMap[permission]; !ok {
return fmt.Errorf("%v: %v", ErrInvalidProjectRole, permission)
return fmt.Errorf("%w: %v", ErrInvalidProjectRole, permission)
}
}
}
Expand Down

0 comments on commit 7a4f935

Please sign in to comment.