Skip to content

Commit

Permalink
handle response errors when delivering minidumps
Browse files Browse the repository at this point in the history
  • Loading branch information
yousif-bugsnag committed Oct 23, 2023
1 parent 74ebfda commit 90012c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/plugin-electron-deliver-minidumps/send-minidump.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ module.exports = (net, client) => {
const send = (opts, formData) => {
return new Promise((resolve, reject) => {
const req = net.request(opts, response => {
response.on('error', reject)

if (isOk(response)) {
resolve()
} else {
Expand Down

0 comments on commit 90012c4

Please sign in to comment.