MCPcopy Create free account
hub / github.com/gogs/gogs / NewError

Function NewError

internal/gitutil/error.go:23–25  ·  view source on GitHub ↗

NewError wraps given error.

(err error)

Source from the content-addressed store, hash-verified

21
22// NewError wraps given error.
23func NewError(err error) error {
24 return Error{error: err}
25}
26
27// IsErrSubmoduleNotExist returns true if the underlying error is
28// git.ErrSubmoduleNotExist.

Callers 15

SingleDownloadFunction · 0.92
editFileFunction · 0.92
DiffFunction · 0.92
RawDiffFunction · 0.92
CompareDiffFunction · 0.92
renderDirectoryFunction · 0.92
HomeFunction · 0.92
GetRepoGitTreeFunction · 0.92
GetRawFileFunction · 0.92
GetEditorconfigFunction · 0.92
RepoGitBlobFunction · 0.92
GetContentsFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestError_NotFoundFunction · 0.56