Skip to content

Commit

Permalink
text
Browse files Browse the repository at this point in the history
  • Loading branch information
emilymye committed Aug 5, 2019
1 parent 7dc7a3d commit ca5f256
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func dataSourceFolderRead(d *schema.ResourceData, meta interface{}) error {
if err := resourceGoogleFolderRead(d, meta); err != nil {
return err
}
// If resource doesn't exist, 404 was handled in read().
// If resource doesn't exist, read will not set ID and we should return error.
if d.Id() == "" {
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion third_party/terraform/resources/resource_google_folder.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func resourceGoogleFolderRead(d *schema.ResourceData, meta interface{}) error {

folder, err := getGoogleFolder(d.Id(), d, config)
if err != nil {
return handleNotFoundError(err, d, d.Id())
return handleNotFoundError(err, d, fmt.Sprintf("Folder Not Found : %s", d.Id()))
}

d.Set("name", folder.Name)
Expand Down

0 comments on commit ca5f256

Please sign in to comment.