Skip to content

Commit

Permalink
fix err to return string not error object
Browse files Browse the repository at this point in the history
  • Loading branch information
codykoelemay committed Oct 27, 2022
1 parent 103076b commit f236184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resource_alks_iamrole.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func resourceAlksIamRoleRead(ctx context.Context, d *schema.ResourceData, meta i
//If error is 404, RoleNotFound, we log it and let terraform decide how to handle it.
//All other errors cause a failure
if err.StatusCode == 404 {
log.Printf("[Error] %s", err)
log.Printf("[Error] %s", err.Error())
d.SetId("")
return nil
}
Expand Down

0 comments on commit f236184

Please sign in to comment.