try this :
unsigned char err = CAN.checkError(); if(err!= CAN_OK) { Serial.print ("value of error register: "); Serial.println (err); }