Skip to content

Commit

Permalink
install: throw on invalid execution context.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmodena committed Jan 13, 2025
1 parent b4ec3ff commit c507924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/flatpak/install.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c507924

Please sign in to comment.