Skip to content

Commit 14ffbcf

Browse files
committed
Throw exception when existing file present
1 parent 0166aa4 commit 14ffbcf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,7 @@ private static void moveInputToAnalysisDir(File input, SequenceJob job, Collecti
466466
}
467467
else
468468
{
469-
output = new File(outputDir, FileUtil.getBaseName(input.getName()) + ".orig.gz");
470-
job.getLogger().debug("\tA file with the expected output name already exists, so the original will be renamed: " + output.getPath());
469+
throw new PipelineJobException("A file with the expected output name already exists: " + output.getPath());
471470
}
472471
}
473472

0 commit comments

Comments
 (0)