More work to facilitate detailed error reporting in PathFactory.