Skip to content

Commit

Permalink
Fix error when generating error for polling for updates (#25609)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Jun 15, 2023
1 parent 2d09b82 commit 2b31b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vector/platform/WebPlatform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default class WebPlatform extends VectorBasePlatform {
logger.error("Failed to poll for update", err);
return {
status: UpdateCheckStatus.Error,
detail: err.message || err.status ? err.status.toString() : "Unknown Error",
detail: err.message || (err.status ? err.status.toString() : "Unknown Error"),
};
},
);
Expand Down

0 comments on commit 2b31b8d

Please sign in to comment.