Skip to content

Commit

Permalink
Add better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
oscar-izval committed Mar 10, 2024
1 parent f934ef0 commit c3a04d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/languages/terraform.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ in

config = lib.mkIf cfg.enable {
languages.terraform.package = lib.mkMerge [
(lib.mkIf (cfg.version != null) (nixpkgs-terraform.packages.${pkgs.stdenv.system}.${cfg.version} or (throw "Unsupported Terraform version, see https://github.com/stackbuilders/nixpkgs-terraform for more details.")))
(lib.mkIf (cfg.version != null) (nixpkgs-terraform.packages.${pkgs.stdenv.system}.${cfg.version} or (throw "Unsupported Terraform version, see https://github.com/stackbuilders/nixpkgs-terraform/blob/main/versions.json for the full list of supported versions.")))
];

packages = with pkgs; [
Expand Down

0 comments on commit c3a04d0

Please sign in to comment.