diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-10-17 16:00:27 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-10-17 16:00:27 +0000 |
commit | 86e1b335e3da1d1321445b9f1728ac30bb097eb5 (patch) | |
tree | 325ed9ab0d1e6ca84cd50b181cb120e59ce2164f /urpmf | |
parent | 9ac82cd085df97d3aed5d2cd946e794f572531a7 (diff) | |
download | urpmi-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-x | urpmf | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |