HBASE-1656: loadZooConfig can mask true error
Include the original exception along with the new message. git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@794059 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e9c8ea8156
commit
6ac21bbb48
|
@ -213,7 +213,7 @@ public class HQuorumPeer implements HConstants {
|
|||
} catch (IOException e) {
|
||||
String msg = "fail to read properties from " + ZOOKEEPER_CONFIG_NAME;
|
||||
LOG.fatal(msg);
|
||||
throw new IOException(msg);
|
||||
throw new IOException(msg, e);
|
||||
}
|
||||
for (Entry<Object, Object> entry : properties.entrySet()) {
|
||||
String value = entry.getValue().toString().trim();
|
||||
|
|
Loading…
Reference in New Issue