Add error log for File object