HBASE-20579 Include original exception in wrapped exception

Signed-off-by: Ted Yu <yuzhihong@gmail.com>
This commit is contained in:
Josh Elser 2018-06-02 18:11:08 -04:00
parent 8377873d22
commit a5ed463d48
1 changed files with 2 additions and 2 deletions

View File

@ -877,7 +877,7 @@ public class ExportSnapshot extends AbstractHBaseTool implements Tool {
fs.setOwner(path, filesUser, filesGroup);
} catch (IOException e) {
throw new RuntimeException(
"set owner for file " + path + " to " + filesUser + ":" + filesGroup + " failed");
"set owner for file " + path + " to " + filesUser + ":" + filesGroup + " failed", e);
}
}, conf);
}
@ -893,7 +893,7 @@ public class ExportSnapshot extends AbstractHBaseTool implements Tool {
fs.setPermission(path, perm);
} catch (IOException e) {
throw new RuntimeException(
"set permission for file " + path + " to " + filesMode + " failed");
"set permission for file " + path + " to " + filesMode + " failed", e);
}
}, conf);
}