mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
Changing error message
This commit is contained in:
parent
0f90c0d591
commit
8ab2b75a1f
@ -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