MCPcopy
hub / github.com/windtf/wireproxy / panicIfError

Function panicIfError

cmd/wireproxy/main.go:34–38  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

32var version = "1.0.8-dev"
33
34func panicIfError(err error) {
35 if err != nil {
36 log.Fatal(err)
37 }
38}
39
40// attempts to pledge and panic if it fails
41// this does nothing on non-OpenBSD systems

Callers 4

pledgeOrPanicFunction · 0.85
unveilOrPanicFunction · 0.85
lockFunction · 0.85
lockNetworkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected