MCPcopy Create free account
hub / github.com/compozy/agh / prefixedError

Function prefixedError

internal/api/core/session_workspace.go:201–207  ·  view source on GitHub ↗
(prefix string, message string)

Source from the content-addressed store, hash-verified

199}
200
201func prefixedError(prefix string, message string) error {
202 label := strings.TrimSpace(prefix)
203 if label == "" {
204 return errors.New(message)
205 }
206 return fmt.Errorf("%s: %s", label, message)
207}
208
209func prefixedRuntimeOverrideError(prefix string, message string) error {
210 return fmt.Errorf("%w: %w", session.ErrInvalidRuntimeOverride, prefixedError(prefix, message))

Callers 5

lookupWorkspaceIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected