Closed ankrgyl closed 2 years ago
Good call - thanks for the comprehensive report. Stork has, in the past, done a better job of displaying the errors it encountered if it couldn't parse any files, but I think there was a regression somewhere along the way.
I'll get to this before releasing the next version.
Best, James
Awesome, thank you!
I was trying to index an HTML document which does not have a
main
tag, and the error message looks something like this:Digging around a bit, it seems like
IndexGenerationError::NoValidFiles
doesn't retain the context for why there are no valid files. However, if you have at least one valid file in the ToML file, then you get a more helpful error:Would it be possible to include this more helpful reason in the first case as well? I'd be happy to contribute a fix (with some guidance around the ideal solution), but I'm new to the project so figured I'd ask here first.