Skip to content

Commit

Permalink
Warn more on bad META files.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Apr 18, 2015
1 parent ad6c845 commit 03af28c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/MetaCPAN/Model/Release.pm
Expand Up @@ -329,7 +329,10 @@ sub _load_meta_file {
try {
$last = CPAN::Meta->load_file($file);
}
catch { $error = $_ };
catch {
$error = $_;
log_warn {"META file ($file) could not be loaded: $error"};
};
if ($last) {
last;
}
Expand All @@ -341,7 +344,7 @@ sub _load_meta_file {
}
}

log_warn {"META file could not be loaded: $error"} unless @backends;
log_warn {'No META files could be loaded'} unless @backends;
}

sub extract {
Expand Down

0 comments on commit 03af28c

Please sign in to comment.