add file name to error message.