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

Commit7ec1868

Browse files
committed
Return error directly in internal/sync/sync.go#Version
1 parent21976c6 commit7ec1868

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎internal/sync/sync.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,10 @@ func (s Sync) Version() (string, error) {
288288

289289
err=process.Wait()
290290
ifcode,ok:=err.(wsep.ExitError);ok {
291-
return"",fmt.Errorf("Version check exit status: %v",code)
291+
return"",err
292292
}
293293
iferr!=nil {
294-
return"",fmt.Errorf("Server version mismatch")
294+
return"",err
295295
}
296296

297297
firstLine,err:=buf.ReadString('\n')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp