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

Lines changed: 4 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy