[#346] safely destructure identity failure errors
- BUG SYMPTOM: some send response handlers error when they try to
destructure a null
data
field - CAUSE: the
{identityFailure}
destructuring assignment unsafely assumes that allsend_message
values will have adata
field on which we can calldata[0]
- FIX: don't assume anything about the shape of the
data
field. extractidentityFailure
from it (if it is there) with a lodashget
call to the full path to the field we are trying to (conditionally) extract
Closes #346 (closed)