Skip to content

Commit

Permalink
fix(nextcloud_test): Throw error if no compatible app release was found
Browse files Browse the repository at this point in the history
Signed-off-by: jld3103 <[email protected]>
  • Loading branch information
provokateurin committed Dec 13, 2023
1 parent 65bf592 commit 44a9711
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 44a9711

Please sign in to comment.