Add file name to exception message

This commit is contained in:
Leonard Ehrenfried 2017-09-26 10:43:34 +02:00
parent 293666f653
commit 08fedf787b
No known key found for this signature in database
GPG Key ID: 56CCB7F9445717AF
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 {