add missing return

This commit is contained in:
Jake Champlin 2017-02-16 07:57:34 -05:00
parent 179aa62ad4
commit e052ded267
No known key found for this signature in database
GPG Key ID: DC31F41958EF4AC2
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ func resourceCloudFlareRecordCreate(d *schema.ResourceData, meta interface{}) er
// Validate type
if err := validateRecordType(newRecord.Type, newRecord.Proxied); err != nil {
fmt.Errorf("Error validating record type %q: %s", newRecord.Type, err)
return fmt.Errorf("Error validating record type %q: %s", newRecord.Type, err)
}
zoneId, err := client.ZoneIDByName(newRecord.ZoneName)