summaryrefslogtreecommitdiffstats
path: root/urpmf
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-17 16:00:27 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-17 16:00:27 +0000
commit86e1b335e3da1d1321445b9f1728ac30bb097eb5 (patch)
tree325ed9ab0d1e6ca84cd50b181cb120e59ce2164f /urpmf
parent9ac82cd085df97d3aed5d2cd946e794f572531a7 (diff)
downloadurpmi-86e1b335e3da1d1321445b9f1728ac30bb097eb5.tar
urpmi-86e1b335e3da1d1321445b9f1728ac30bb097eb5.tar.gz
urpmi-86e1b335e3da1d1321445b9f1728ac30bb097eb5.tar.bz2
urpmi-86e1b335e3da1d1321445b9f1728ac30bb097eb5.tar.xz
urpmi-86e1b335e3da1d1321445b9f1728ac30bb097eb5.zip
Explain internal errors in debug mode
Diffstat (limited to 'urpmf')
-rwxr-xr-xurpmf5
1 files changed, 4 insertions, 1 deletions
diff --git a/urpmf b/urpmf
index 2dbe7636..99a6e3d9 100755
--- a/urpmf
+++ b/urpmf
@@ -131,7 +131,10 @@ $callback .= '
}';
$urpm->{error}(N("callback is:\n%s\n", $callback)) if our $debug;
$callback = eval $callback;
-$@ and usage;
+if ($@) {
+ $debug and warn "Internal error: $@\n";
+ usage;
+}
if ($env) {
print STDERR N("using specific environment on %s\n", $env);