diff options
author | Joachim Schiele <js@lastlog.de> | 2017-05-16 12:40:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-16 12:40:09 +0200 |
commit | d5e18499d936c7a7cd22e96dc6ed957086a7b1ce (patch) | |
tree | 14577a36776e3ef3e8fe9c858b4de10d1dd32d67 /nixos/modules/services/networking/nsd.nix | |
parent | 3cd189c3bcf907ed80c945028746d9c453f1a8b6 (diff) | |
download | nixlib-d5e18499d936c7a7cd22e96dc6ed957086a7b1ce.tar nixlib-d5e18499d936c7a7cd22e96dc6ed957086a7b1ce.tar.gz nixlib-d5e18499d936c7a7cd22e96dc6ed957086a7b1ce.tar.bz2 nixlib-d5e18499d936c7a7cd22e96dc6ed957086a7b1ce.tar.lz nixlib-d5e18499d936c7a7cd22e96dc6ed957086a7b1ce.tar.xz nixlib-d5e18499d936c7a7cd22e96dc6ed957086a7b1ce.tar.zst nixlib-d5e18499d936c7a7cd22e96dc6ed957086a7b1ce.zip |
on error, add a reference to the configuration file (#25825)
error now adds the zone file in the output which makes 'reasonable' debugging possible! [root@nixdoc:~/nixpkgs_nsd]# nixos-rebuild -I nixpkgs=. switch building Nix... building the system configuration... these derivations will be built: /nix/store/318a7mhwlz1x0cy4hl1259n8x9z0jacy-nsd-env.drv /nix/store/fnbhk8grwk7vfdk3gby49bv6kml8hjcc-unit-script.drv /nix/store/xf80mq1f1c3pm37fci0vi5ixy4gb1rcp-unit-nsd.service.drv /nix/store/bfmkkykqksmvkhvh3ppl36k86lbw9v4i-system-units.drv /nix/store/ja97mwl2r0wdrxccl82dx8jln7jlmnyb-etc.drv /nix/store/yh8m6b3j8vapz2r1wzffq8zq09j56q8p-nixos-system-nixdoc.io-17.09.git.0afb6d7.drv building path(s) ‘/nix/store/sg7w3k6qg2yr02a0sbrgbv5yiqn9pzcq-nsd-env’ created 2 symlinks in user environment checking zone files |- checking zone '/nix/store/sg7w3k6qg2yr02a0sbrgbv5yiqn9pzcq-nsd-env/zones/lastlog.de.' [2017-05-16 10:30:34.628] nsd-checkzone[27696]: error: lastlog.de.:17: syntax error [2017-05-16 10:30:34.628] nsd-checkzone[27696]: error: lastlog.de.:17: unrecognized RR type 'lastlog' zone lastlog.de. file lastlog.de. has 2 errors builder for ‘/nix/store/318a7mhwlz1x0cy4hl1259n8x9z0jacy-nsd-env.drv’ failed with exit code 1 cannot build derivation ‘/nix/store/xf80mq1f1c3pm37fci0vi5ixy4gb1rcp-unit-nsd.service.drv’: 1 dependencies couldn't be built cannot build derivation ‘/nix/store/bfmkkykqksmvkhvh3ppl36k86lbw9v4i-system-units.drv’: 1 dependencies couldn't be built cannot build derivation ‘/nix/store/ja97mwl2r0wdrxccl82dx8jln7jlmnyb-etc.drv’: 1 dependencies couldn't be built cannot build derivation ‘/nix/store/yh8m6b3j8vapz2r1wzffq8zq09j56q8p-nixos-system-nixdoc.io-17.09.git.0afb6d7.drv’: 1 dependencies couldn't be built error: build of ‘/nix/store/yh8m6b3j8vapz2r1wzffq8zq09j56q8p-nixos-system-nixdoc.io-17.09.git.0afb6d7.drv’ failed
Diffstat (limited to 'nixos/modules/services/networking/nsd.nix')
-rw-r--r-- | nixos/modules/services/networking/nsd.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/nsd.nix b/nixos/modules/services/networking/nsd.nix index 481e267f6c38..0f01b9d4af04 100644 --- a/nixos/modules/services/networking/nsd.nix +++ b/nixos/modules/services/networking/nsd.nix @@ -30,6 +30,7 @@ let cd $out/zones for zoneFile in *; do + echo "|- checking zone '$out/zones/$zoneFile'" ${nsdPkg}/sbin/nsd-checkzone "$zoneFile" "$zoneFile" || { if grep -q \\\\\\$ "$zoneFile"; then echo zone "$zoneFile" contains escaped dollar signes \\\$ |