platform/aws: add missing errcheck
This provides a better error message when run with a wrong
configuration, such as a wrong instance type.
@@ -85,6 +85,9 @@ func (ac *cluster) NewMachine(userdata string) (platform.Machine, error) {
conf.CopyKeys(keys)
instances, err := ac.api.CreateInstances(ac.Name(), conf.String(), 1, true)
+ if err != nil {
+ return nil, err
+ }
mach := &machine{
cluster: ac,
