MCPcopy
hub / github.com/wavetermdev/waveterm / Errorf

Function Errorf

pkg/utilds/codederror.go:66–68  ·  view source on GitHub ↗

Errorf creates a formatted error wrapped in a CodedError. This is a convenience function that combines fmt.Errorf with MakeCodedError.

(code string, format string, args ...interface{})

Source from the content-addressed store, hash-verified

64// Errorf creates a formatted error wrapped in a CodedError.
65// This is a convenience function that combines fmt.Errorf with MakeCodedError.
66func Errorf(code string, format string, args ...interface{}) error {
67 return MakeCodedError(code, fmt.Errorf(format, args...))
68}

Callers 3

createHostKeyCallbackFunction · 0.92
createClientConfigFunction · 0.92
ConnectToClientFunction · 0.92

Calls 1

MakeCodedErrorFunction · 0.85

Tested by

no test coverage detected