check code is error