From ea471351f11f2c1d3a5c7b306e270c89c488e32d Mon Sep 17 00:00:00 2001 From: Christophe Haen Date: Tue, 25 Jun 2024 16:50:21 +0200 Subject: [PATCH] sweep: #7682 Make Daniela Happy Part 1 --- src/DIRAC/Resources/Storage/StorageElement.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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