Skip to content

Commit 70dfa6e

Browse files
committed
use StringUtil.quoteWithBackticks instead of manually quoting with a single backtick
1 parent e5e20ab commit 70dfa6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,8 +1236,8 @@ private void doExtract(FileExtractor extractor, Path file, ExtractorState state)
12361236
if (!extractor.getConfig().isExterns()) seenFiles = true;
12371237
List<ParseError> errors = loc == null ? Collections.emptyList() : loc.getParseErrors();
12381238
for (ParseError err : errors) {
1239-
String msg = "A parse error occurred: `" + StringUtil.escapeMarkdown(err.getMessage()).trim()
1240-
+ "`. 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.";
1239+
String msg = "A parse error occurred: " + StringUtil.quoteWithBackticks(StringUtil.escapeMarkdown(err.getMessage()).trim())
1240+
+ ". 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.";
12411241
// file, relative to the source root
12421242
String relativeFilePath = null;
12431243
if (file.startsWith(LGTM_SRC)) {

0 commit comments

Comments
 (0)