I suggest to `panic` this error (`panic(fmt.Errorf("netrc error (%s): %v", apiURL.Host, err))`). If there's an error, `credentials` will be nil and the program will fail for a NPE instead of the `err` from `FindMachine`.