diff --git a/curriculum/test/utils/extract-js-comments.js b/curriculum/test/utils/extract-js-comments.js index 75ee28f0476..2ae99dc7e53 100644 --- a/curriculum/test/utils/extract-js-comments.js +++ b/curriculum/test/utils/extract-js-comments.js @@ -9,7 +9,7 @@ function extractComments(js) { try { parser.parse(js, { onComment: comments, ecmaVersion: 2020 }); } catch { - throw Error(`extract-js-comments could not parse the code below, this challenge have invalid syntax: + throw Error(`extract-js-comments could not parse the code below, this challenge has invalid syntax: ${js} `);