Skip to content

Commit

Permalink
lib/generators: abort on pattern match failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Profpatsch committed Jan 3, 2018
1 parent 93d3561 commit 3197221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators.nix
Expand Up @@ -130,6 +130,6 @@ rec {
(name: value:
"${toPretty args name} = ${toPretty args value};") v)
+ " }"
else "toPretty: should never happen (v = ${v})";
else abort "toPretty: should never happen (v = ${v})";

}

0 comments on commit 3197221

Please sign in to comment.