Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

Commit540a957

Browse files
committed
fixup! Migrate more logs to clog
1 parent64aa1c1 commit540a957

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
funcWarn(headerstring,lines...string)CLIError {
7878
returnCLIError{
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
funcError(headerstring,lines...string)CLIError {
9191
returnCLIError{
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
funcFatal(headerstring,lines...string)CLIError {
104104
returnCLIError{
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
returnfmt.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
funcCause(formatstring,a...interface{})string {
132132
returnfmt.Sprintf("%s %s",Bold("cause:"),fmt.Sprintf(format,a...))
133133
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp