mirror of
https://github.com/github/codeql.git
synced 2026-01-03 01:30:19 +01:00
add backticks around the concrete parse error
This commit is contained in:
@@ -1236,8 +1236,8 @@ protected DependencyInstallationResult preparePackagesAndDependencies(Set<Path>
|
||||
if (!extractor.getConfig().isExterns()) seenFiles = true;
|
||||
List<ParseError> errors = loc == null ? Collections.emptyList() : loc.getParseErrors();
|
||||
for (ParseError err : errors) {
|
||||
String msg = "A parse error occurred: " + StringUtil.escapeMarkdown(err.getMessage())
|
||||
+ ". Check the syntax of the file. If the file is invalid, correct the error or [exclude](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/customizing-code-scanning) the file from analysis.";
|
||||
String msg = "A parse error occurred: `" + StringUtil.escapeMarkdown(err.getMessage()).trim()
|
||||
+ "`. Check the syntax of the file. If the file is invalid, correct the error or [exclude](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/customizing-code-scanning) the file from analysis.";
|
||||
// file, relative to the source root
|
||||
String relativeFilePath = null;
|
||||
if (file.startsWith(LGTM_SRC)) {
|
||||
|
||||
Reference in New Issue
Block a user