summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/download.pm')
-rw-r--r--urpm/download.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 9abe039d..34e6c8bf 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -260,12 +260,17 @@ sub set_proxy {
@res;
}
-sub _error {
+sub _error_msg {
my ($name) = @_;
my $msg = $? & 127 ? N("%s failed: exited with signal %d", $name, $? & 127) :
N("%s failed: exited with %d", $name, $? >> 8);
- die "$msg\n";
+ "$msg\n";
+}
+
+sub _error {
+ my ($name) = @_;
+ die _error_msg($name);
}
sub hide_password {