Improved error messages for file fetching.