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

Function Check

x/error.go:29–34  ·  view source on GitHub ↗

Check logs fatal if err != nil.

(err error)

Source from the content-addressed store, hash-verified

27
28// Check logs fatal if err != nil.
29func Check(err error) {
30 if err != nil {
31 err = errors.Wrap(err, "")
32 log.Fatalf("%+v", err)
33 }
34}
35
36// Checkf is Check with extra info.
37func Checkf(err error, format string, args ...interface{}) {

Callers 15

NewNodeFunction · 0.92
SendMethod · 0.92
BatchAndSendMessagesMethod · 0.92
addToClusterMethod · 0.92
RaftMessageMethod · 0.92
ExecuteFunction · 0.92
initCmdsFunction · 0.92
setGlogFlagsFunction · 0.92
applySnapshotMethod · 0.92
applyConfChangeMethod · 0.92
initAndStartNodeMethod · 0.92

Calls 1

FatalfMethod · 0.80

Tested by 15

TestLoaderXidmapFunction · 0.74
TestEmptyTypeSchemaFunction · 0.74
TestGetScalarListFunction · 0.74
TestMultipleTxnListCountFunction · 0.74
TestScalarPredicateCountFunction · 0.74
TestSingleUidReplacementFunction · 0.74
TestSingleStringFunction · 0.74
TestLangExactFunction · 0.74