1
0
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:
Jamie Hewitt 2021-07-09 15:33:48 +03:00
parent 0f90c0d591
commit 8ab2b75a1f
2 changed files with 2 additions and 2 deletions

View File

@ -634,7 +634,7 @@ export class Assets extends Instantiable {
if (txid) return txid.transactionHash if (txid) return txid.transactionHash
} catch (e) { } catch (e) {
this.logger.error(`ERROR: Failed to order a service : ${e.message}`) 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}`)
} }
} }

View File

@ -205,7 +205,7 @@ export class Provider extends Instantiable {
return await response.text() return await response.text()
} catch (e) { } catch (e) {
this.logger.error(e) this.logger.error(e)
throw new Error('HTTP request failed') throw new Error('Asset URL not found or not available.')
} }
} }