MCPcopy Create free account
hub / github.com/Scalingo/cli / displayScalingoError

Function displayScalingoError

cmd/error.go:98–103  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

96}
97
98func displayScalingoError(err error) {
99 io.Error("An error occurred:")
100 debug.Println(err)
101 message := err.Error()
102 fmt.Println(io.Indent(message, 7))
103}
104
105func displayRequestFailedError(requestFailedErr *httpclient.RequestFailedError, currentUser *scalingo.User, autherr error, err error) {
106 switch requestFailedErr.Code {

Callers 2

displayErrorFunction · 0.85

Calls 3

ErrorFunction · 0.92
IndentFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected