Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Improve log messages when fetching META.list
  • Loading branch information
zoffixznet committed Nov 21, 2015
1 parent ffb04ac commit 6c8bd64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/lib/DbBuilder.pm
Expand Up @@ -88,7 +88,7 @@ sub _meta_list {
my $self = shift;
my $meta_list = $self->_meta_list;

log info => "Fetching META.list from $meta_list";
log info => "Loading META.list from $meta_list";
my $url = Mojo::URL->new( $meta_list );
my $raw_data;
if ( $url->scheme =~ /(ht|f)tps?/i ) {
Expand All @@ -108,7 +108,8 @@ sub _meta_list {
$raw_data = slurp $meta_list;
}
else {
log fatal => 'Could not figure out how to read';
log fatal => 'Could not figure out how to load META.list. It does '
. 'not seem to be a URL, but is not a [readable] file either';
}

my @metas = grep /\S/, map trim($_), split m{\Q$/\E}, $raw_data;
Expand Down

0 comments on commit 6c8bd64

Please sign in to comment.