MCPcopy
hub / github.com/netdata/netdata / isAlreadyExists

Function isAlreadyExists

src/go/tools/functions-validation/seed/rethinkdb/hold.go:66–68  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

64}
65
66func isAlreadyExists(err error) bool {
67 return err != nil && (strings.Contains(err.Error(), "already exists") || strings.Contains(err.Error(), "Duplicate"))
68}
69
70func fatalf(format string, args ...any) {
71 _, _ = fmt.Fprintf(os.Stderr, format+"\n", args...)

Callers 2

ensureDBFunction · 0.85
ensureTableFunction · 0.85

Calls 2

ContainsMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…