print STDERR "$self: reading $manifest...\n" if $verbose>=4;
if (defined $manifests{$manifest}) {
print STDERR
- "$self: warning: $subdir: specified more than once!\n";
+ "$self: warning: $subdir: specified more than once!".
+ " (ignoring $why)\n";
return undef;
}
foreach my $try ("$manifest.unnailed", "$manifest") {
- my $toml = toml_or_enoent($try, "package manifest") // next;
+ my $toml = toml_or_enoent($try, "manifest, in $why") // next;
my $p = $toml->{package}{name};
if (!defined $p) {
print STDERR
- "$self: warning: $subdir: missing package.name in $try, ignoring\n";
+ "$self: warning: $subdir, $why: missing package.name in $try, ignoring\n";
next;
}
$manifests{$manifest} = $toml;