HADOOP-11143 NetUtils.wrapException loses inner stack trace on BindException

This commit is contained in:
Steve Loughran 2014-09-27 21:06:31 +01:00
parent a6879b606e
commit 7fabec3258
2 changed files with 4 additions and 1 deletions

View File

@ -544,6 +544,9 @@ Release 2.6.0 - UNRELEASED
HADOOP-10552. Fix usage and example at FileSystemShell.apt.vm
(Kenji Kikushima via aw)
HADOOP-11143 NetUtils.wrapException loses inner stack trace on BindException
(stevel)
Release 2.5.1 - 2014-09-05
INCOMPATIBLE CHANGES

View File

@ -716,7 +716,7 @@ public class NetUtils {
final int localPort,
final IOException exception) {
if (exception instanceof BindException) {
return new BindException(
return wrapWithMessage(exception,
"Problem binding to ["
+ localHost
+ ":"