Better error reporting on paths resolution