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

Commit2e975ed

Browse files
committed
fixup! Migrate more logs to clog
1 parentc2a182d commit2e975ed

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 aRichCLIMessage a allows consumers to treat it as a normal error.
21+
// CLIError wraps aCLIMessage and allows consumers to treat it as a normal error.
2222
typeCLIErrorstruct {
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 (rCLIMessage)String()string {
2929
varstr strings.Builder
3030
str.WriteString(fmt.Sprintf("%s: %s\n",
@@ -37,8 +37,8 @@ func (r CLIMessage) String() string {
3737
returnstr.String()
3838
}
3939

40-
// Log logs the given error to stderr, defaulting to "fatal" if the error is not aRichCLIError.
41-
// If the error is aRichCLIError, the plain error chain is ignored and therich error
40+
// Log logs the given error to stderr, defaulting to "fatal" if the error is not aCLIError.
41+
// If the error is aCLIError, the plain error chain is ignored and theCLIError
4242
// is logged on its own.
4343
funcLog(errerror) {
4444
varcliErrCLIError

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp