Skip to content

Commit b7a05cb

Browse files
committed
Improve error message in object_storage_service.py
1 parent 1cf3080 commit b7a05cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

api/src/api/services/object_storage_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def get_signed_request_details(self, method: str, object_key: str, content_type:
9393
"""Return signed request headers for a single object request without executing it."""
9494
if not self.is_configured():
9595
raise ValueError(
96-
'accesskey is None or secretkey is None or S3 host is None or formsbucket is None'
96+
'(get_signed_request_details) S3 Object service is not configured properly.'
9797
)
9898

9999
s3uri = self.get_url(object_key)
@@ -123,7 +123,7 @@ def get_auth_headers(self, documents: List[dict[str, Any]]):
123123
if not self.is_configured():
124124
return {
125125
'status': 'Configuration Issue',
126-
'message': 'accesskey is None or secretkey is None or S3 host is None or formsbucket is None'
126+
'message': '(get_auth_headers) S3 Object service is not configured properly.',
127127
}, 500
128128

129129
for file in documents:

0 commit comments

Comments
 (0)