adding error logging for failure of one file