Allow GetPath() to return an error.