Import from Kettle/PDI - if import fails the user isn't notified
Moved error handling to per file level and added logging name of file that was causing the error.  Still needs a message back to GUI to notify client of error.
@@ -106,13 +106,16 @@ public class HopImportMigratedFiles implements IExtensionPoint<Object[]> {
String folderName = outFile.getParent();
Files.createDirectories(Paths.get(folderName));
StreamResult streamResult = new StreamResult(new File(outFilename));
+ try {
transformer.transform(domSource, streamResult);
+ } catch(TransformerException e) {
+ iLogChannel.logError("Error transforming '" + filename + " to Hop.");
+ e.printStackTrace();
+ }
}
}
}catch(TransformerConfigurationException e) {
e.printStackTrace();
- }catch(TransformerException e) {
- e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
