Skip to content

Commit

Permalink
azurerm_image - improve not found error message (#6515)
Browse files Browse the repository at this point in the history
Fix the issue of #6016

(fixes #6016)
  • Loading branch information
Neil Ye committed Apr 21, 2020
1 parent c1707b0 commit ffcfcfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurerm/internal/services/compute/data_source_image.go
Expand Up @@ -141,7 +141,7 @@ func dataSourceArmImageRead(d *schema.ResourceData, meta interface{}) error {
var err error
if img, err = client.Get(ctx, resGroup, name, ""); err != nil {
if utils.ResponseWasNotFound(img.Response) {
return fmt.Errorf("Error: Image %q (Resource Group %q) was not found", name, resGroup)
return fmt.Errorf("image %q was not found in resource group %q", name, resGroup)
}
return fmt.Errorf("[ERROR] Error making Read request on Azure Image %q (resource group %q): %+v", name, resGroup, err)
}
Expand Down

0 comments on commit ffcfcfb

Please sign in to comment.