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

Commit bbfdbdd

Browse files
committed
fixup! Migrate more logs to clog
1 parent 103b0b7 commit bbfdbdd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/clog/error.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ type RichCLIMessage struct {
1818
Lines []string
1919
}
2020

21+
// RichCLIError wraps a RichCLIMessage a allows consumers to treat it as a normal error.
2122
type RichCLIError struct {
2223
RichCLIMessage
2324
error
@@ -36,7 +37,6 @@ func (r RichCLIMessage) String() string {
3637
return str.String()
3738
}
3839

39-
4040
// Wrap wraps the underling error, but does not add context IF a downstream
4141
// error is a RichCLIError. The original human-readable message is retained.
4242
func Wrap(err error, msg string) error {
@@ -62,7 +62,7 @@ func LogInfo(header string, lines ...string) {
6262
Level: "info",
6363
Color: color.FgBlue,
6464
Header: header,
65-
Lines: lines,
65+
Lines: lines,
6666
}.String())
6767
}
6868

@@ -77,7 +77,7 @@ func LogSuccess(header string, lines ...string) {
7777
Level: "success",
7878
Color: color.FgGreen,
7979
Header: header,
80-
Lines: lines,
80+
Lines: lines,
8181
}.String())
8282
}
8383

0 commit comments

Comments
 (0)