mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
more empathetic error message
This commit is contained in:
parent
d6a7800cc4
commit
056ec23925
@ -81,7 +81,10 @@ export default class AssetFile extends PureComponent<
|
||||
this.setState({ isLoading: false })
|
||||
} catch (error) {
|
||||
Logger.log('error', error.message)
|
||||
this.setState({ isLoading: false, error: error.message })
|
||||
this.setState({
|
||||
isLoading: false,
|
||||
error: `${error.message}. Sorry about that, can you try again?`
|
||||
})
|
||||
ReactGA.event({
|
||||
category: 'Purchase',
|
||||
action: 'purchaseAsset-error ' + error.message
|
||||
|
Loading…
Reference in New Issue
Block a user