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:
Bryan Duxbury 2009-07-14 20:32:31 +00:00
parent e9c8ea8156
commit 6ac21bbb48
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ public class HQuorumPeer implements HConstants {
} catch (IOException e) { } catch (IOException e) {
String msg = "fail to read properties from " + ZOOKEEPER_CONFIG_NAME; String msg = "fail to read properties from " + ZOOKEEPER_CONFIG_NAME;
LOG.fatal(msg); LOG.fatal(msg);
throw new IOException(msg); throw new IOException(msg, e);
} }
for (Entry<Object, Object> entry : properties.entrySet()) { for (Entry<Object, Object> entry : properties.entrySet()) {
String value = entry.getValue().toString().trim(); String value = entry.getValue().toString().trim();