From 8e669ac1dd7e925d9fb4f2e6b0f42e69f8458b4e Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 24 Nov 2006 20:45:52 +0000 Subject: do display the error --- urpm/media.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'urpm') diff --git a/urpm/media.pm b/urpm/media.pm index 44212c6a..956cec08 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -1071,9 +1071,10 @@ sub _build_synthesis { end => $medium->{end}, synthesis => statedir_synthesis($urpm, $medium), ) }; - if ($@) { + if (my $err = $@) { + chomp($err); $urpm->{error}(N("Unable to build synthesis file for medium \"%s\". Your hdlist file may be corrupted.", $medium->{name})); - $urpm->{error}($@); + $urpm->{error}($err); unlink statedir_synthesis($urpm, $medium); } else { $urpm->{log}(N("built hdlist synthesis file for medium \"%s\"", $medium->{name})); -- cgit v1.2.1