1
0
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:
Matthias Kretschmann 2019-05-21 12:07:27 +02:00
parent d6a7800cc4
commit 056ec23925
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -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