Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
商海涛 committed Sep 13, 2023
1 parent 905fb3b commit d6306a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/electron-updater/src/NsisUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export class NsisUpdater extends BaseUpdater {
if (errorCode === "UNKNOWN" || errorCode === "EACCES") {
callUsingElevation()
} else if (errorCode === 'ENOENT') {
require("electron").shell.openPath(options.installerPath).catch(err => this.dispatchError(err))
require("electron").shell.openPath(options.installerPath).catch((err: Error) => this.dispatchError(err))
} else {
this.dispatchError(e)
}
Expand Down

0 comments on commit d6306a5

Please sign in to comment.