diff --git a/Toolbox Migration/src/com/bayer/edam/excelimport/CropAssetCopyTool.java b/Toolbox Migration/src/com/bayer/edam/excelimport/CropAssetCopyTool.java index 5c5c9ee..e8702da 100644 --- a/Toolbox Migration/src/com/bayer/edam/excelimport/CropAssetCopyTool.java +++ b/Toolbox Migration/src/com/bayer/edam/excelimport/CropAssetCopyTool.java @@ -93,7 +93,7 @@ public class CropAssetCopyTool { if (file.isFile()) { if (fileLength < 1) { noContent++; - log.warn("Skipping '" + filePath + "' (AssetID " + assetId + "), no content. Removing file from list."); + log.warn("Line " + lineNo + ", AssetID " + assetId + " - Skipping file '" + filePath + "', no content. Removing file from list."); linesForDeletion.add(line); } else if (expectedSize != fileLength) { @@ -129,7 +129,13 @@ public class CropAssetCopyTool { File destFile = new File(videoTargetPath + "\\" + targetName); log.info("Line " + lineNo + ", AssetID " + assetId + ": Moving " + srcFile.getAbsolutePath() + " to " + destFile.getAbsolutePath()); - FileUtils.moveFile(srcFile, destFile); + try { + FileUtils.moveFile(srcFile, destFile); + } + catch (IOException ioe) { + log.error("Line " + lineNo + ", AssetID " + assetId + " - IOException: '" + ioe.getMessage() + "'"); + ioe.printStackTrace(); + } } video++;