Skip to content

Commit

Permalink
Merge pull request #1279 from nextcloud/fix/nextcloud_test/no-compati…
Browse files Browse the repository at this point in the history
…ble-app-release
  • Loading branch information
provokateurin authored Dec 13, 2023
2 parents 65bf592 + 44a9711 commit 49efac6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/nextcloud_test/lib/src/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ extension AppFindLatestRelease on App {
)
.toList()
..sort((final a, final b) => b.version.compareTo(a.version));
if (compatibleReleases.isEmpty) {
throw Exception('App $id has no compatible release with server $serverVersion.');
}
return compatibleReleases.first;
}
}
Expand Down

0 comments on commit 49efac6

Please sign in to comment.