MCPcopy Index your code
hub / github.com/jetify-com/devbox / New

Function New

internal/boxcli/usererr/usererr.go:29–33  ·  view source on GitHub ↗

New creates new user error with the given message. By default these errors are not logged to Sentry. If you want to log the error, use NewLogged

(msg string, args ...any)

Source from the content-addressed store, hash-verified

27// New creates new user error with the given message. By default these errors
28// are not logged to Sentry. If you want to log the error, use NewLogged
29func New(msg string, args ...any) error {
30 return errors.WithStack(&combined{
31 userMessage: fmt.Sprintf(msg, args...),
32 })
33}
34
35// NewLogged creates new user error with the given message. These messages are
36// logged to Sentry without the message (for privacy reasons). This is useful

Callers 15

EnsureValidPlatformFunction · 0.92
EnsureNixInstalledFunction · 0.92
FileContentMethod · 0.92
includable.goFile · 0.92
getPluginNameFromContentFunction · 0.92
ValidateExistsMethod · 0.92
PullMethod · 0.92
PushMethod · 0.92
InitFromNameFunction · 0.92
createDirAndEnsureEmptyFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected