Skip to content

Commit

Permalink
adding more info
Browse files Browse the repository at this point in the history
  • Loading branch information
prklm10 committed Oct 25, 2023
1 parent 59d7f86 commit a96724f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions percy/util/postFailedEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ const CLIENT_INFO = `${sdkPkg.name.split('/')[1]}-js/${sdkPkg.version}`;
module.exports = async function postFailedEvents(error) {
let options = {
clientInfo: CLIENT_INFO,
errorMessage: error
message: error,
errorKind: 'sdk'
};

return await module.exports.request(options);
};

module.exports.request = async function request(data) {
try {
await utils.postFailedEvent(data);
await utils.postBuildEvents(data);
} catch {}
}; // To mock in test case

0 comments on commit a96724f

Please sign in to comment.