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

Commit 7ec1868

Browse files
committed
Return error directly in internal/sync/sync.go#Version
1 parent 21976c6 commit 7ec1868

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
if code, ok := err.(wsep.ExitError); ok {
291-
return "", fmt.Errorf("Version check exit status: %v", code)
291+
return "", err
292292
}
293293
if err != nil {
294-
return "", fmt.Errorf("Server version mismatch")
294+
return "", err
295295
}
296296

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

0 commit comments

Comments
 (0)