Skip to content

Commit

Permalink
fix: network error is when a response was not received.
Browse files Browse the repository at this point in the history
  • Loading branch information
guanzo committed Sep 15, 2023
1 parent 2b6cc06 commit f543169
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ class Saturn {
)
}
} catch (err) {
log.ifNetworkError = err.message
if (!res) {
log.ifNetworkError = err.message
}
// Report now if error, otherwise report after download is done.
this._finalizeLog(log)

Expand Down

0 comments on commit f543169

Please sign in to comment.