carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1package fixture
2
3// Not compiled: testdata is ignored by the go tool. Each sink below forwards
4// text the gate cannot read.
5
6func refuse(w int, err error) {
7 jsonError(w, 502, err.Error())
8}
9
10// A helper that hands an error's text on is not a sentence helper, so a
11// sentence altered in the package that raised the error never reaches the
12// record.
13func why(err error) string {
14 return err.Error()
15}
16
17func report(err error) Check {
18 return Check{Reason: why(err)}
19}
20