diff --git a/src/DIRAC/Interfaces/scripts/dmeta.py b/src/DIRAC/Interfaces/scripts/dmeta.py index c869a6a400d..2d68f1406b4 100755 --- a/src/DIRAC/Interfaces/scripts/dmeta.py +++ b/src/DIRAC/Interfaces/scripts/dmeta.py @@ -40,6 +40,9 @@ def run(self, lfn, metas): result = self.fcClient.setMetadataBulk({lfn: metadict}) if not result["OK"]: gLogger.error(result["Message"]) + if result["Value"]["Failed"]: + for ff in result["Value"]["Failed"]: + print("Error:", ff, result["Value"]["Failed"][ff]) class DMetaRm(DMetaCommand): @@ -50,6 +53,9 @@ def run(self, lfn, metas): result = self.fcClient.removeMetadata({lfn: metas}) if not result["OK"]: gLogger.error(result["Message"]) + if result["Value"]["Failed"]: + for ff in result["Value"]["Failed"]: + print("Error:", ff, result["Value"]["Failed"][ff]) class DMetaList(DMetaCommand):