add file name and temp dir to error message