Skip to content

Commit

Permalink
ignore non-existing users when removing from project
Browse files Browse the repository at this point in the history
  • Loading branch information
pjstevns committed Feb 17, 2021
1 parent b445a20 commit 2528a04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonarqube/resource_project_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func resourceProjectUserDelete(d *schema.ResourceData, m interface{}) error {
Q: d.Get("email").(string),
})
if err1 != nil {
return err1
return fmt.Errorf("No user found with email address %s", d.Get("email").(string))
}

if len(result.Users) < 1 {
Expand Down

0 comments on commit 2528a04

Please sign in to comment.