package fixture // Not compiled: testdata is ignored by the go tool. Each sink below forwards // text the gate cannot read. func refuse(w int, err error) { jsonError(w, 502, err.Error()) } // A helper that hands an error's text on is not a sentence helper, so a // sentence altered in the package that raised the error never reaches the // record. func why(err error) string { return err.Error() } func report(err error) Check { return Check{Reason: why(err)} }