From c507924371877e17cac1ecd3f85243fd60afb2c8 Mon Sep 17 00:00:00 2001 From: Gabriele Modena Date: Mon, 13 Jan 2025 22:08:44 +0100 Subject: [PATCH] install: throw on invalid execution context. --- modules/flatpak/install.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/flatpak/install.nix b/modules/flatpak/install.nix index a39c39b..17a21ac 100644 --- a/modules/flatpak/install.nix +++ b/modules/flatpak/install.nix @@ -190,7 +190,7 @@ let updateTrigger = if executionContext == "service-start" then cfg.update.onActivation else if executionContext == "timer" then cfg.update.auto.enable - else lib.warn ("executionContext=${executionContext}: invalid arugment.") false; + else throw "flatpak-managed-install: invalid execution context `${executionContext}`" false; # Initializes state variables for managing Flatpak packages and remotes. # NEW_STATE is set to the content of `stateFile`. If `statePath` exists,