fix(tools): make error message slightly less cryptic (#53237)

This commit is contained in:
Mama Naomi
2024-01-17 23:06:06 -08:00
committed by GitHub
parent 58c401239c
commit 803abf106b

View File

@@ -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,