We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10f4687 commit 8af122bCopy full SHA for 8af122b
src/sagemaker/experiments/_metrics.py
@@ -197,8 +197,8 @@ def _send_metrics(self, metrics):
197
response = self._metrics_client.batch_put_metrics(**request)
198
errors = response["Errors"] if "Errors" in response else None
199
if errors:
200
- message = errors[0]["Message"]
201
- raise Exception(f'{len(errors)} errors with message "{message}"')
+ error_code = errors[0]["Code"]
+ raise Exception(f'{len(errors)} errors with error code "{error_code}"')
202
203
def _construct_batch_put_metrics_request(self, batch):
204
"""Creates dictionary object used as request to metrics service."""
0 commit comments