summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorDanylo Hlynskyi <abcz2.uprola@gmail.com>2019-06-13 11:59:54 +0300
committerGitHub <noreply@github.com>2019-06-13 11:59:54 +0300
commite718eb624301cbf1147970701ca525573bd6fc1d (patch)
tree185e48c3ed3f21f89f73333f525cfa0b6831245b /lib
parent8c912d4e471ec46dac2b6806fd282c57f47cba31 (diff)
parentf7940bb95d1b88f17fb42cc13b98b660cec8aee4 (diff)
downloadnixpkgs-e718eb624301cbf1147970701ca525573bd6fc1d.tar
nixpkgs-e718eb624301cbf1147970701ca525573bd6fc1d.tar.gz
nixpkgs-e718eb624301cbf1147970701ca525573bd6fc1d.tar.bz2
nixpkgs-e718eb624301cbf1147970701ca525573bd6fc1d.tar.lz
nixpkgs-e718eb624301cbf1147970701ca525573bd6fc1d.tar.xz
nixpkgs-e718eb624301cbf1147970701ca525573bd6fc1d.tar.zst
nixpkgs-e718eb624301cbf1147970701ca525573bd6fc1d.zip
Merge pull request #62712 from danbst/module-conflict-naming
NixOS module system: improve one of error messages
Diffstat (limited to 'lib')
-rw-r--r--lib/options.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/options.nix b/lib/options.nix
index a16a980398d..d2eae3ae3a9 100644
--- a/lib/options.nix
+++ b/lib/options.nix
@@ -101,7 +101,7 @@ rec {
   mergeOneOption = loc: defs:
     if defs == [] then abort "This case should never happen."
     else if length defs != 1 then
-      throw "The unique option `${showOption loc}' is defined multiple times, in ${showFiles (getFiles defs)}."
+      throw "The unique option `${showOption loc}' is defined multiple times, in:\n - ${concatStringsSep "\n - " (getFiles defs)}."
     else (head defs).value;
 
   /* "Merge" option definitions by checking that they all have the same value. */