• how to chek the error state ?