diff --git a/src/DIRAC/Resources/Storage/StorageElement.py b/src/DIRAC/Resources/Storage/StorageElement.py index dbf00b070cf..688ccfb7cf9 100755 --- a/src/DIRAC/Resources/Storage/StorageElement.py +++ b/src/DIRAC/Resources/Storage/StorageElement.py @@ -839,7 +839,9 @@ def generateTransferURLsBetweenSEs(self, lfns, sourceSE, protocols=None): {"Successful": successful, "Failed": failed, "Protocols": (nativeSrcProtocol, nativeDestProtocol)} ) - return S_ERROR(errno.ENOPROTOOPT, "Could not find a protocol ") + return S_ERROR( + errno.ENOPROTOOPT, f"Could not find a protocol between source {sourceSE.name} and target {self.name}" + ) def negociateProtocolWithOtherSE(self, sourceSE, protocols=None): """Negotiate what protocol could be used for a third party transfer