Skip to content

Commit ea10708

Browse files
committed
clarify "expected panic" error output
1 parent 1cecca5 commit ea10708

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

httphelpers/handlers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ func BrokenConnectionHandler() http.Handler {
185185
return
186186
}
187187
}
188-
panic("connection deliberately closed by httphelpers.BrokenConnectionHandler")
188+
panic("connection deliberately closed by httphelpers.BrokenConnectionHandler; a panic stacktrace" +
189+
" here from the Go HTTP framework is expected and can be ignored")
189190
})
190191
}

0 commit comments

Comments
 (0)