Improved path error messages