nixos/bird: print config file with line numbers during config check
Bird configuration errors only print the line number without context.Printing the configuration file with line numbers helps to identify thefaulty expression.
Marcel 6 months ago 14d4a883 62b852f6
··· 86 86 checkPhase = optionalString cfg.checkConfig '' 87 87 ln -s $out bird.conf 88 88 ${cfg.preCheckConfig} 89 89 - bird -d -p -c bird.conf 89 89 + bird -d -p -c bird.conf || { exit=$?; cat -n bird.conf; exit $exit; } 90 90 ''; 91 91 }; 92 92