diff --git a/percy/util/postFailedEvents.js b/percy/util/postFailedEvents.js index 3bf2384..3f4029f 100644 --- a/percy/util/postFailedEvents.js +++ b/percy/util/postFailedEvents.js @@ -14,5 +14,7 @@ module.exports = async function postFailedEvents(error) { }; module.exports.request = async function request(data) { - await utils.request.post('/percy/events', data); + try { + await utils.postFailedEvent(data); + } catch {} }; // To mock in test case