MCPcopy
hub / github.com/dgraph-io/dgraph / CheckfNoLog

Function CheckfNoLog

x/error.go:52–56  ·  view source on GitHub ↗

CheckfNoLog exits on error without any message (to avoid duplicate error messages).

(err error)

Source from the content-addressed store, hash-verified

50
51// CheckfNoLog exits on error without any message (to avoid duplicate error messages).
52func CheckfNoLog(err error) {
53 if err != nil {
54 os.Exit(1)
55 }
56}
57
58// Check2 acts as convenience wrapper around Check, using the 2nd argument as error.
59func Check2(_ interface{}, err error) {

Callers 1

ExecuteFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected