Skip to content

Commit

Permalink
Merge pull request #7465 from atsareg/fix-comd-error
Browse files Browse the repository at this point in the history
[8.0] dmeta - Error message in case failure due to permission denied
  • Loading branch information
fstagni authored Feb 14, 2024
2 parents 24c99ba + 85618dd commit 3081d48
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/DIRAC/Interfaces/scripts/dmeta.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ def run(self, lfn, metas):
result = self.fcClient.setMetadataBulk({lfn: metadict})
if not result["OK"]:
print("Error:", result["Message"])
if result["Value"]["Failed"]:
for ff in result["Value"]["Failed"]:
print("Error:", ff, result["Value"]["Failed"][ff])


class DMetaRm(DMetaCommand):
Expand All @@ -50,6 +53,9 @@ def run(self, lfn, metas):
result = self.fcClient.removeMetadata({lfn: metas})
if not result["OK"]:
print("Error:", result["Message"])
if result["Value"]["Failed"]:
for ff in result["Value"]["Failed"]:
print("Error:", ff, result["Value"]["Failed"][ff])


class DMetaList(DMetaCommand):
Expand Down

0 comments on commit 3081d48

Please sign in to comment.