summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-10-21 13:10:03 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-10-21 13:10:03 +0000
commitef2bddb00f49c56f7786ae587a56bc3cc9cd9ef0 (patch)
treef465bacfa8e968a89ddc426b1997d53e24902953 /urpm
parent6b188b74bcb44e7738241ba13e1b8d499febc844 (diff)
downloadurpmi-ef2bddb00f49c56f7786ae587a56bc3cc9cd9ef0.tar
urpmi-ef2bddb00f49c56f7786ae587a56bc3cc9cd9ef0.tar.gz
urpmi-ef2bddb00f49c56f7786ae587a56bc3cc9cd9ef0.tar.bz2
urpmi-ef2bddb00f49c56f7786ae587a56bc3cc9cd9ef0.tar.xz
urpmi-ef2bddb00f49c56f7786ae587a56bc3cc9cd9ef0.zip
create _error_msg() out of _error()
Diffstat (limited to 'urpm')
-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 {