Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: console log data is far too large #6143

Merged
merged 2 commits into from Aug 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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