Decode data event if there is an error.