Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 2e975ed

Browse files
committed
fixup! Migrate more logs to clog
1 parent c2a182d commit 2e975ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/clog/error.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ type CLIMessage struct {
1818
Lines []string
1919
}
2020

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.
2222
type CLIError struct {
2323
CLIMessage
2424
error
2525
}
2626

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.
2828
func (r CLIMessage) String() string {
2929
var str strings.Builder
3030
str.WriteString(fmt.Sprintf("%s: %s\n",
@@ -37,8 +37,8 @@ func (r CLIMessage) String() string {
3737
return str.String()
3838
}
3939

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
4242
// is logged on its own.
4343
func Log(err error) {
4444
var cliErr CLIError

0 commit comments

Comments
 (0)