helper/schema: Return error on invalid timeout type

This commit is contained in:
Radek Simko 2018-11-05 12:28:56 +00:00
parent 186a6dcc38
commit 2fe3f16cb3
No known key found for this signature in database
GPG Key ID: 1F1C84FE689A88D7
1 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,8 @@ func (t *ResourceTimeout) ConfigDecode(s *Resource, c *terraform.ResourceConfig)
} }
} }
} else { } else {
log.Printf("[WARN] Invalid Timeout structure found, skipping timeouts") log.Printf("[ERROR] Invalid timeout structure: %T", raw)
return fmt.Errorf("Invalid Timeout structure found")
} }
} }