diff --git a/packages/electron-updater/src/AppUpdater.ts b/packages/electron-updater/src/AppUpdater.ts index fb5f23d0234..a4881622cc3 100644 --- a/packages/electron-updater/src/AppUpdater.ts +++ b/packages/electron-updater/src/AppUpdater.ts @@ -305,7 +305,7 @@ export abstract class AppUpdater extends EventEmitter { private async isUpdateAvailable(updateInfo: UpdateInfo): Promise { const latestVersion = parseVersion(updateInfo.version) if (latestVersion == null) { - throw newError(`This file could not be downloaded, or the latest version (from update server) does not have a valid semver version: "${latestVersion}"`, "ERR_UPDATER_INVALID_VERSION") + throw newError(`This file could not be downloaded, or the latest version (from update server) does not have a valid semver version: "${updateInfo.version}"`, "ERR_UPDATER_INVALID_VERSION") } const currentVersion = this.currentVersion @@ -670,4 +670,4 @@ export interface TestOnlyUpdaterOptions { platform: ProviderPlatform isUseDifferentialDownload?: boolean -} \ No newline at end of file +}