[lintian] 04/04: L::Util::fail: Stop fiddling with $!
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit f2e4f51ddf9ee8b49654757b29f688e7858b2fae
Author: Niels Thykier <niels@thykier.net>
Date: Sun Oct 1 13:19:56 2017 +0000
L::Util::fail: Stop fiddling with $!
It was used to ensure that lintian returned the correct exit code
(since die uses $! to determine the default exit code). However,
lintian now catching uncaught exceptions and properly exiting with 2
in those cases, this is now redundant.
Signed-off-by: Niels Thykier <niels@thykier.net>
---
lib/Lintian/Util.pm | 1 -
1 file changed, 1 deletion(-)
diff --git a/lib/Lintian/Util.pm b/lib/Lintian/Util.pm
index 21660ba..a99ea58 100644
--- a/lib/Lintian/Util.pm
+++ b/lib/Lintian/Util.pm
@@ -1205,7 +1205,6 @@ sub fail {
$str .= 'No context.';
}
}
- $! = 2; # set return code outside eval()
croak $str;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: