This repository was archived by the owner on Aug 30, 2024. It is now read-only.
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ type CLIMessage struct {
18
18
Lines []string
19
19
}
20
20
21
- // CLIError wraps a RichCLIMessage a allows consumers to treat it as a normal error.
21
+ // CLIError wraps a CLIMessage and allows consumers to treat it as a normal error.
22
22
type CLIError struct {
23
23
CLIMessage
24
24
error
25
25
}
26
26
27
- // Error formats the CLI message for consumption by a human as an error .
27
+ // String formats the CLI message for consumption by a human.
28
28
func (r CLIMessage ) String () string {
29
29
var str strings.Builder
30
30
str .WriteString (fmt .Sprintf ("%s: %s\n " ,
@@ -37,8 +37,8 @@ func (r CLIMessage) String() string {
37
37
return str .String ()
38
38
}
39
39
40
- // Log logs the given error to stderr, defaulting to "fatal" if the error is not a RichCLIError .
41
- // If the error is a RichCLIError , the plain error chain is ignored and the rich error
40
+ // Log logs the given error to stderr, defaulting to "fatal" if the error is not a CLIError .
41
+ // If the error is a CLIError , the plain error chain is ignored and the CLIError
42
42
// is logged on its own.
43
43
func Log (err error ) {
44
44
var cliErr CLIError
You can’t perform that action at this time.
0 commit comments