Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit e9278b5

Browse files
authored
Merge pull request #386 from smowton/smowton/admin/improve-error-messages
Improve error messages
2 parents 82de513 + 3716f6d commit e9278b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extractor/cli/go-autobuilder/go-autobuilder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func getOsToolsSubdir() (string, error) {
216216
case "windows":
217217
return "win64", nil
218218
}
219-
return "", errors.New("Unknown OS: " + runtime.GOOS)
219+
return "", errors.New("Unsupported OS: " + runtime.GOOS)
220220
}
221221

222222
func getExtractorDir() (string, error) {
@@ -229,7 +229,7 @@ func getExtractorDir() (string, error) {
229229
// Fall back to rebuilding our own path from the extractor root:
230230
extractorRoot := os.Getenv("CODEQL_EXTRACTOR_GO_ROOT")
231231
if extractorRoot == "" {
232-
return "", errors.New("CODEQL_EXTRACTOR_GO_ROOT not set")
232+
return "", errors.New("CODEQL_EXTRACTOR_GO_ROOT not set.\nThis binary should not be run manually; instead, use the CodeQL CLI or VSCode extension. See https://securitylab.github.com/tools/codeql")
233233
}
234234

235235
osSubdir, err := getOsToolsSubdir()

0 commit comments

Comments
 (0)