1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

Updating error message

This commit is contained in:
Jamie Hewitt 2023-01-05 15:00:33 +00:00
parent e9c72bcba8
commit 85f4cb99d9

View File

@ -32,11 +32,11 @@ export default function FilesInput(props: InputProps): ReactElement {
)
}
// Check if provider is a valid provider
const isValid = await ProviderInstance.isValidProvider(field.value.url)
const isValid = await ProviderInstance.isValidProvider(providerUrl)
if (!isValid)
throw Error(
'✗ Provider cannot be reached, please check status at https://status.oceanprotocol.com and try again later.'
'✗ Provider cannot be reached, please check status.oceanprotocol.com and try again later.'
)
const checkedFile = await getFileInfo(url, providerUrl, storageType)