MCPcopy
hub / github.com/harness/harness / Internal

Function Internal

errors/status.go:142–147  ·  view source on GitHub ↗

Internal is a helper function to return an internal Error.

(err error, format string, args ...interface{})

Source from the content-addressed store, hash-verified

140
141// Internal is a helper function to return an internal Error.
142func Internal(err error, format string, args ...interface{}) *Error {
143 msg := fmt.Sprintf(format, args...)
144 return Format(StatusInternal, msg).SetErr(
145 fmt.Errorf("%s: %w", msg, err),
146 )
147}
148
149// Conflict is a helper function to return an conflict Error.
150func Conflict(format string, args ...interface{}) *Error {

Callers 15

MergeMethod · 0.92
SyncRepositoryMethod · 0.92
prepareTreeEmptyRepoMethod · 0.92
PushRemoteMethod · 0.92
FindConflictsFunction · 0.92
CommitCountFunction · 0.92
CreateRefUpdaterFunction · 0.92
DiffCutMethod · 0.92
NextPartMethod · 0.92
InfoRefsMethod · 0.92

Calls 3

SetErrMethod · 0.80
FormatFunction · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…