mirror of
https://github.com/jellyfin/jellyfin-sdk-typescript.git
synced 2024-11-23 05:59:44 +00:00
refactor: throw VersionMissingIssue when isVersionLess
throws on unrecognised version
This commit is contained in:
parent
e8b289f8ef
commit
a6acce1a15
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user