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

Commit 540a957

Browse files
committed
fixup! Migrate more logs to clog
1 parent 64aa1c1 commit 540a957

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
@@ -76,7 +76,7 @@ func LogSuccess(header string, lines ...string) {
7676
// Warn creates an error with the level "warning".
7777
func Warn(header string, lines ...string) CLIError {
7878
return CLIError{
79-
RichCLIMessage: CLIMessage{
79+
CLIMessage: CLIMessage{
8080
Color: color.FgYellow,
8181
Level: "warning",
8282
Header: header,
@@ -89,7 +89,7 @@ func Warn(header string, lines ...string) CLIError {
8989
// Error creates an error with the level "error".
9090
func Error(header string, lines ...string) CLIError {
9191
return CLIError{
92-
RichCLIMessage: CLIMessage{
92+
CLIMessage: CLIMessage{
9393
Color: color.FgRed,
9494
Level: "error",
9595
Header: header,
@@ -102,7 +102,7 @@ func Error(header string, lines ...string) CLIError {
102102
// Fatal creates an error with the level "fatal".
103103
func Fatal(header string, lines ...string) CLIError {
104104
return CLIError{
105-
RichCLIMessage: CLIMessage{
105+
CLIMessage: CLIMessage{
106106
Color: color.FgRed,
107107
Level: "fatal",
108108
Header: header,
@@ -127,7 +127,7 @@ func Hint(format string, a ...interface{}) string {
127127
return fmt.Sprintf("%s %s", Bold("hint:"), fmt.Sprintf(format, a...))
128128
}
129129

130-
// Cause formats according to the given format specifier and prepends a bolded "Cause: " header.
130+
// Cause formats according to the given format specifier and prepends a bolded "cause: " header.
131131
func Cause(format string, a ...interface{}) string {
132132
return fmt.Sprintf("%s %s", Bold("cause:"), fmt.Sprintf(format, a...))
133133
}

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