mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
kernel generate-config.pl: Be more verbose on errors
This commit is contained in:
parent
15fa31d33e
commit
246bd302ec
|
@ -136,6 +136,6 @@ foreach my $name (sort (keys %answers)) {
|
|||
my $f = $requiredAnswers{$name} && $ENV{'ignoreConfigErrors'} ne "1"
|
||||
? sub { die "error: " . $_[0]; } : sub { warn "warning: " . $_[0]; };
|
||||
&$f("unused option: $name\n") unless defined $config{$name};
|
||||
&$f("option not set correctly: $name\n")
|
||||
&$f("option not set correctly: $name (wanted '$answers{$name}', got '$config{$name}')\n")
|
||||
if $config{$name} && $config{$name} ne $answers{$name};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue