nextcloud31Packages.apps.recognize: throw a proper error message when the nextcloud version is not supported

This commit is contained in:
Sandro Jäckel
2025-03-07 20:38:31 +01:00
parent 2efa259458
commit 52eb593cf3
@@ -27,7 +27,9 @@ let
modelHash = "sha256-M/j5wVOBLR7xMVJQWDUWAzLajRUBYEzHSNBsRSBUgfM=";
};
};
currentVersionInfo = latestVersionForNc.${ncVersion};
currentVersionInfo =
latestVersionForNc.${ncVersion}
or (throw "recognize currently does not support nextcloud version ${ncVersion}");
in
stdenv.mkDerivation rec {
pname = "nextcloud-app-recognize";