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:
parent
e9c72bcba8
commit
85f4cb99d9
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user