Skip to content

Commit

Permalink
updating err msg
Browse files Browse the repository at this point in the history
  • Loading branch information
zricethezav committed Mar 13, 2019
1 parent 3ca6a5f commit 92ebb63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apigee/resource_target_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func resourceTargetServerImport(d *schema.ResourceData, meta interface{}) ([]*sc
if err != nil {
log.Printf("[ERROR] resourceTargetServerImport error getting target servers: %s", err.Error())
if strings.Contains(err.Error(), "404 ") {
return []*schema.ResourceData{}, fmt.Errorf("[Error] resourceTargetServerImport 404 encountered. Removing state for target server: %#v", d.Get("name").(string))
return []*schema.ResourceData{}, fmt.Errorf("[Error] resourceTargetServerImport 404 encountered. Removing state for target server: %#v", name)
}
return []*schema.ResourceData{}, fmt.Errorf("[ERROR] resourceTargetServerImport error getting target servers: %s", err.Error())
}
Expand Down

0 comments on commit 92ebb63

Please sign in to comment.