提交 2f17e71e 编写于 作者: 虎斗's avatar 虎斗 提交者: dailidong

throw excetion instead of swallow it (#919)

上级 6135a6ad
......@@ -288,9 +288,11 @@ public class HadoopUtils implements Closeable {
if (dstPath.isFile()) {
if (overwrite) {
dstPath.delete();
}else{
throw new IOException("destination file already exists!");
}
} else {
logger.error("destination file must be a file");
throw new IOException("destination file must be a file!");
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册