Skip to content

Commit

Permalink
Merge pull request #1240 from RafaelTaranto/backport/machine-ping-saf…
Browse files Browse the repository at this point in the history
…eguard

LAM-589 fix: download speed errors failing gracefully
  • Loading branch information
RafaelTaranto authored Nov 29, 2024
2 parents d1ddf9f + 4801b79 commit 7e0a48c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ping.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ const checkDownloadSpeed = (packages) => {
const mbps = (kbps / 1000).toFixed(2)
resolve({ bps, kbps, mbps })
})
})
}).on('error', e => reject(e))
}).catch(error => {
console.log('Failed to check download speed')
throw new Error(error)
})
}
Expand Down

0 comments on commit 7e0a48c

Please sign in to comment.