Check error in file