diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2021-09-28 22:26:51 +0200 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2021-09-28 22:26:51 +0200 |
commit | 681758d41588c27aaa6f3c3a72184dcc4d0aeba8 (patch) | |
tree | 636cb91675f0c785d171a426af34129b4af4cee3 /lib/generators.nix | |
parent | b96101a35f5cd0bd348449b245244732df3ee545 (diff) | |
download | nixpkgs-681758d41588c27aaa6f3c3a72184dcc4d0aeba8.tar nixpkgs-681758d41588c27aaa6f3c3a72184dcc4d0aeba8.tar.gz nixpkgs-681758d41588c27aaa6f3c3a72184dcc4d0aeba8.tar.bz2 nixpkgs-681758d41588c27aaa6f3c3a72184dcc4d0aeba8.tar.lz nixpkgs-681758d41588c27aaa6f3c3a72184dcc4d0aeba8.tar.xz nixpkgs-681758d41588c27aaa6f3c3a72184dcc4d0aeba8.tar.zst nixpkgs-681758d41588c27aaa6f3c3a72184dcc4d0aeba8.zip |
lib/generators: fix error message
Diffstat (limited to 'lib/generators.nix')
-rw-r--r-- | lib/generators.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/generators.nix b/lib/generators.nix index 9271b9746ae..bd82f0a19af 100644 --- a/lib/generators.nix +++ b/lib/generators.nix @@ -197,7 +197,7 @@ rec { withRecursion = args@{ - /* If this option is not null, `toPretty` will stop evaluating at a certain depth */ + /* If this option is not null, the given value will stop evaluating at a certain depth */ depthLimit /* If this option is true, an error will be thrown, if a certain given depth is exceeded */ , throwOnDepthLimit ? true @@ -207,7 +207,7 @@ rec { transform = depth: if depthLimit != null && depth > depthLimit then if throwOnDepthLimit - then throw "Exceeded maximum eval-depth limit of ${toString depthLimit} while trying to pretty-print with `generators.withRecursion'!" + then throw "Exceeded maximum eval-depth limit of ${toString depthLimit} while trying to evaluate with `generators.withRecursion'!" else const "<unevaluated>" else id; mapAny = with builtins; depth: v: |