Add file information to error messages.