fix(err) re-add Draft Sending Errored event into Nylas Mail

This commit is contained in:
Evan Morikawa 2017-01-18 12:07:58 -08:00
parent 9120c598e7
commit dfd4693dce

View file

@ -257,6 +257,10 @@ export default class SendDraftTask extends BaseDraftTask {
});
}
}
Actions.recordUserEvent("Draft Sending Errored", {
error: err.message,
errorClass: err.constructor.name,
})
NylasEnv.reportError(err);
return Promise.resolve([Task.Status.Failed, err]);