Merge pull request #171 from leonardehrenfried/1.x

Add file name to exception message
This commit is contained in:
eugene yokota 2017-09-26 18:42:31 -04:00 committed by GitHub
commit eda1e773fd
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ private[sbt] object ConvertResolver {
// Here we duplicate the put method for files so we don't just bail on trying ot use Http handler
val resource = getResource(destination)
if (!overwrite && resource.exists()) {
throw new IOException("destination file exists and overwrite == false");
throw new IOException(s"Destination file $destination exists and overwrite == false");
}
fireTransferInitiated(resource, TransferEvent.REQUEST_PUT);
try {