Fixed error reporting in path parser.