RED-4653: Added a descriptive error message when the storage endpoint is nor a correct url
This commit is contained in:
parent
379685f964
commit
098a62335b
@ -65,6 +65,8 @@ def _parse_endpoint(endpoint):
|
||||
if url(endpoint):
|
||||
parsed_url = urlparse(endpoint)
|
||||
return {"secure": parsed_url.scheme == "https", "endpoint": parsed_url.netloc}
|
||||
else:
|
||||
raise f"The configured storage endpoint is not a valid url: {endpoint}"
|
||||
|
||||
|
||||
def get_s3_storage(config: Config):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user