Skip to content

Commit

Permalink
update error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Mar 13, 2024
1 parent a400f81 commit 5ca430d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wis2_gdc/registrar.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def _run_ets(self) -> dict:
ts = WMOCoreMetadataProfileTestSuite2(self.metadata)
return ts.run_tests(fail_on_schema_validation=True)
except ValueError as err:
return {'description': f'Failed validation: {err}'}
return {'description': f'Failed ETS: {err}'}

def _run_kpi(self) -> dict:
"""
Expand All @@ -160,7 +160,7 @@ def _run_kpi(self) -> dict:
kpis = WMOCoreMetadataProfileKeyPerformanceIndicators(self.metadata) # noqa
return kpis.evaluate()
except Exception as err:
return {'description': f'Failed validation: {err}'}
return {'description': f'Failed KPI: {err}'}

def _publish(self):
"""
Expand Down

0 comments on commit 5ca430d

Please sign in to comment.