refactor: throw VersionMissingIssue when isVersionLess throws on unrecognised version

This commit is contained in:
Fernando Fernández 2023-05-10 15:52:22 +00:00 committed by GitHub
parent e8b289f8ef
commit a6acce1a15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,8 +68,8 @@ function toRecommendedServerInfo(result: SystemInfoResult): RecommendedServerInf
}
} catch (error) {
if (error instanceof TypeError) {
issues.push(new VersionUnsupportedIssue(version ?? 'Unknown'));
scores.push(RecommendedServerInfoScore.OK);
issues.push(new VersionMissingIssue());
scores.push(RecommendedServerInfoScore.BAD);
}
}