MCPcopy Create free account
hub / github.com/celer-pkg/celer / PrintError

Function PrintError

pkgs/color/format.go:38–42  ·  view source on GitHub ↗
(err error, format string, args ...any)

Source from the content-addressed store, hash-verified

36}
37
38func PrintError(err error, format string, args ...any) error {
39 details := strings.ReplaceAll(err.Error(), " -> ", "\n └─ ")
40 Fprintf(os.Stderr, Error, "\n[✘] %s\n[☛] %s\n", fmt.Sprintf(format, args...), details)
41 return silentError{inner: err}
42}
43
44func PrintWarning(format string, args ...any) {
45 Printf(Warning, "\n[!] %s", fmt.Sprintf(format, args...))

Callers 15

mainFunction · 0.92
runInstallMethod · 0.92
installMethod · 0.92
buildSuggestionsMethod · 0.92
doSearchMethod · 0.92
CommandMethod · 0.92
configureMainMethod · 0.92
configureCCacheMethod · 0.92
configureProxyMethod · 0.92
configurePkgCacheMethod · 0.92
createPlatformMethod · 0.92
createProjectMethod · 0.92

Calls 3

FprintfFunction · 0.85
ErrorMethod · 0.80
SprintfMethod · 0.80

Tested by

no test coverage detected