Move the error handling to _parsePaths

This is further from the original source of the problem, but the resulting error behavior is arguably better.