Skip to content

Commit 3cc6db1

Browse files
committed
Better error handling
1 parent f8029db commit 3cc6db1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/pipeline/ReadsetInitTask.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,10 @@ else if (TaskFileManager.InputFileTreatment.compress == inputFileTreatment)
430430
moveInputToAnalysisDir(compressed, job, actions, unalteredInputs, outputFiles);
431431
}
432432
}
433+
else
434+
{
435+
job.getLogger().debug("Input file does not exist, may have already been moved: " + input.getPath());
436+
}
433437
}
434438
}
435439
else
@@ -452,6 +456,7 @@ private static void moveInputToAnalysisDir(File input, SequenceJob job, Collecti
452456
job.getLogger().debug("Destination: " + output.getPath());
453457
if (output.exists())
454458
{
459+
job.getLogger().debug("output already exists");
455460
if (unalteredInputs != null && unalteredInputs.contains(output))
456461
{
457462
job.getLogger().debug("\tThis input was unaltered during normalization and a copy already exists in the analysis folder so the original will be discarded");
@@ -488,7 +493,7 @@ private static void moveInputToAnalysisDir(File input, SequenceJob job, Collecti
488493

489494
TaskFileManagerImpl.swapFilesInRecordedActions(job.getLogger(), input, output, actions, job, null);
490495
}
491-
catch (IOException e)
496+
catch (Exception e)
492497
{
493498
throw new PipelineJobException(e);
494499
}

0 commit comments

Comments
 (0)