1
0
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:
Jamie Hewitt 2021-07-12 12:01:12 +03:00 committed by GitHub
commit 27d074f3b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
} 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}`)
}
}

View File

@ -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.')
}
}