(ctx iris.Context)
| 32 | } |
| 33 | |
| 34 | func handler(ctx iris.Context) { |
| 35 | ctx.Record() |
| 36 | |
| 37 | ctx.WriteString("This should NOT be written") |
| 38 | |
| 39 | // [....something bad happened after we "write"] |
| 40 | err := fmt.Errorf("custom error") |
| 41 | ctx.StopWithError(iris.StatusBadRequest, err) |
| 42 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…