mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 17:38:41 +00:00
Chore: Fix tests (#4440)
This commit is contained in:
parent
ce2384cccc
commit
d451078e72
3 changed files with 6 additions and 7 deletions
|
@ -89,12 +89,11 @@ func whichProtoc(suffix, targetedVersion string) (string, error) {
|
|||
|
||||
path, err := exec.LookPath(protoc)
|
||||
if err != nil {
|
||||
errStr := fmt.Sprintf(`
|
||||
return "", fmt.Errorf(`
|
||||
Command "%s" not found.
|
||||
Make sure that %s is in your system path or current path.
|
||||
Download %s v%s or later from https://github.com/protocolbuffers/protobuf/releases
|
||||
`, protoc, protoc, protoc, targetedVersion)
|
||||
return "", fmt.Errorf(errStr)
|
||||
}
|
||||
return path, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue