Skip to content

Commit

Permalink
fix: console log data for electron-updater blockmaps are far too large (
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaietta committed Aug 12, 2021
1 parent a3f2cd1 commit ae363e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/honest-comics-switch.md
@@ -0,0 +1,5 @@
---
"electron-updater": patch
---

fix: removing data from error being thrown. It's unnecessary and also unnecessarily large to be passing to the console. Resolves: #6131
2 changes: 1 addition & 1 deletion packages/electron-updater/src/NsisUpdater.ts
Expand Up @@ -154,7 +154,7 @@ export class NsisUpdater extends BaseUpdater {
try {
return JSON.parse(gunzipSync(data).toString())
} catch (e) {
throw new Error(`Cannot parse blockmap "${url.href}", error: ${e}, raw data: ${data}`)
throw new Error(`Cannot parse blockmap "${url.href}", error: ${e}`)
}
}

Expand Down

0 comments on commit ae363e5

Please sign in to comment.