mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
Merge pull request #898 from oceanprotocol/issue-850-asset-unavailable-error
Changing error message
This commit is contained in:
commit
27d074f3b8
@ -634,7 +634,7 @@ export class Assets extends Instantiable {
|
||||
if (txid) return txid.transactionHash
|
||||
} catch (e) {
|
||||
this.logger.error(`ERROR: Failed to order a service : ${e.message}`)
|
||||
throw new Error(`Failed to order a service: ${e.message}`)
|
||||
throw new Error(`${e.message}`)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -205,7 +205,7 @@ export class Provider extends Instantiable {
|
||||
return await response.text()
|
||||
} catch (e) {
|
||||
this.logger.error(e)
|
||||
throw new Error('HTTP request failed')
|
||||
throw new Error('Asset URL not found or not available.')
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user