Improve error reporting in problem.hxx