mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-12 07:02:42 -04:00
fix(tools): make error message slightly less cryptic (#53237)
This commit is contained in:
@@ -613,7 +613,9 @@ function replaceChallengeFilesContentsWithSolutions(
|
||||
({ ext, name }) => ext === file.ext && file.name === name
|
||||
);
|
||||
if (!matchingSolutionFile) {
|
||||
throw Error(`No matching solution file found`);
|
||||
throw Error(
|
||||
`No matching solution file found for ${file.name}.${file.ext} - this likely means the seed code for the next step is missing the ${file.ext} code block.`
|
||||
);
|
||||
}
|
||||
return {
|
||||
...file,
|
||||
|
||||
Reference in New Issue
Block a user