Skip to content

Commit 2dc2cf1

Browse files
authored
Merge pull request #15 from launchdarkly/eb/sc-151602/panic-message
clarify "expected panic" error output
2 parents 1cecca5 + ea10708 commit 2dc2cf1

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)