mantle: clean up platform/machine/aws
This cleans up platform/machine/aws/machine.go.
Fixes part of
@@ -149,7 +149,9 @@ func (am *machine) saveConsole(origConsole string) error {
return err
}
defer f.Close()
- f.WriteString(am.console)
+ if _, err := f.WriteString(am.console); err != nil {
+ return err
+ }
return nil
}
