Fix error when generating error for polling for updates (#25609)

This commit is contained in:
Michael Telatynski 2023-06-15 13:25:04 +01:00 committed by GitHub
parent 2d09b826d1
commit 2b31b8d9d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,7 +167,7 @@ export default class WebPlatform extends VectorBasePlatform {
logger.error("Failed to poll for update", err); logger.error("Failed to poll for update", err);
return { return {
status: UpdateCheckStatus.Error, status: UpdateCheckStatus.Error,
detail: err.message || err.status ? err.status.toString() : "Unknown Error", detail: err.message || (err.status ? err.status.toString() : "Unknown Error"),
}; };
}, },
); );