Skip to content

Commit 9fc119c

Browse files
committed
Rearrange diagnostic error message
The context should come in the middle and the call to action should come last.
1 parent 63d3b3f commit 9fc119c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/extractor/diagnostics/diagnostics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func EmitCannotFindPackages(pkgPaths []string) {
151151
emitDiagnostic(
152152
"go/autobuilder/package-not-found",
153153
fmt.Sprintf("%d package%s could not be found", numPkgPaths, ending),
154-
"The following packages could not be found. Check that the paths are correct and make sure any private packages can be accessed. If any of the packages are present in the repository then you may need a [custom build command](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-the-codeql-workflow-for-compiled-languages).\n\n"+secondLine,
154+
"The following packages could not be found.\n\n"+secondLine+"\n\nCheck that the paths are correct and make sure any private packages can be accessed. If any of the packages are present in the repository then you may need a [custom build command](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-the-codeql-workflow-for-compiled-languages).",
155155
severityError,
156156
fullVisibility,
157157
noLocation,

0 commit comments

Comments
 (0)