From 4e204cf007ddd09407c8d4142f5cbee36baee440 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Thu, 21 Sep 2006 10:28:37 +0000 Subject: Fix some error messages --- urpm.pm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'urpm.pm') diff --git a/urpm.pm b/urpm.pm index 00c9600d..8ca9994e 100644 --- a/urpm.pm +++ b/urpm.pm @@ -771,12 +771,11 @@ sub add_distrib_media { my $distribconf; if (my ($dir) = $url =~ m!^(?:removable[^:]*:/|file:/)?(/.*)!) { - # FIXME obscure error message $urpm->try_mounting($dir) - or $urpm->{error}(N("unable to access first installation medium")), return (); + or $urpm->{error}(N("unable to mount the distribution medium")), return (); $distribconf = MDV::Distribconf->new($dir); - # FIXME ugly error message - $distribconf->load() or $urpm->{error}(N("this url seems to not contain any distrib")), return (); + $distribconf->load() + or $urpm->{error}(N("this location doesn't seem to contain any distribution")), return (); } else { unlink "$urpm->{cachedir}/partial/media.cfg"; @@ -803,7 +802,7 @@ sub add_distrib_media { $distribconf->parse_mediacfg("$urpm->{cachedir}/partial/media.cfg") or $urpm->{error}(N("unable to parse media.cfg")), return(); } else { - $urpm->{error}(N("unable to access first installation medium (no hdlists file found)")); + $urpm->{error}(N("unable to access the distribution medium (no media.cfg file found)")); return (); } } -- cgit v1.2.1