diff --git a/src/main/java/org/broadinstitute/hellbender/tools/IndexFeatureFile.java b/src/main/java/org/broadinstitute/hellbender/tools/IndexFeatureFile.java index 86a0e5ecd6a..427055588ef 100644 --- a/src/main/java/org/broadinstitute/hellbender/tools/IndexFeatureFile.java +++ b/src/main/java/org/broadinstitute/hellbender/tools/IndexFeatureFile.java @@ -78,11 +78,11 @@ protected Object doWork() { try { index.write(indexPath); } catch (final IOException e) { - throw new UserException.CouldNotCreateOutputFile("Could not write index to file " + indexPath.toAbsolutePath(), e); + throw new UserException.CouldNotCreateOutputFile("Could not write index to file " + indexPath, e); } - logger.info("Successfully wrote index to " + indexPath.toAbsolutePath()); - return indexPath.toAbsolutePath().toString(); + logger.info("Successfully wrote index to " + indexPath); + return indexPath.toString(); } private Path determineFileName(final Index index) {