MCPcopy Create free account
hub / github.com/jetify-com/devbox / WithLoggedUserMessage

Function WithLoggedUserMessage

internal/boxcli/usererr/usererr.go:66–75  ·  view source on GitHub ↗
(source error, msg string, args ...any)

Source from the content-addressed store, hash-verified

64}
65
66func WithLoggedUserMessage(source error, msg string, args ...any) error {
67 if source == nil || hasUserMessage(source) {
68 return source
69 }
70 return &combined{
71 logged: true,
72 source: source,
73 userMessage: fmt.Sprintf(msg, args...),
74 }
75}
76
77// Extract unwraps and returns the user error if it exists.
78func Extract(err error) (error, bool) { // nolint: revive

Callers 1

removeCurrentVersionFileFunction · 0.92

Calls 1

hasUserMessageFunction · 0.85

Tested by

no test coverage detected