src/main/java/org/embulk/output/orc/OrcOutputPluginHelper.java in embulk-output-orc-0.2.0 vs src/main/java/org/embulk/output/orc/OrcOutputPluginHelper.java in embulk-output-orc-0.2.2
- old
+ new
@@ -1,7 +1,9 @@
package org.embulk.output.orc;
+import com.google.common.base.Throwables;
+
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
@@ -18,9 +20,9 @@
// TODO: Check local file. not HDFS or S3.
try {
Files.deleteIfExists(path);
}
catch (IOException e) {
- e.printStackTrace();
+ Throwables.propagate(e);
}
}
}