Skip to content

Commit

Permalink
fix (SE): better error message when no matching protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
chaen committed Jun 20, 2024
1 parent 34d5e05 commit 63afb0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DIRAC/Resources/Storage/StorageElement.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 63afb0a

Please sign in to comment.