fix error message

This commit is contained in:
Jonathan Rainville 2018-09-11 17:10:36 -04:00
parent cbd208cae1
commit e28d631bd1
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class App extends React.Component {
if (err) {
// If err is not null then it means something went wrong connecting to ethereum
// you can use this to ask the user to enable metamask for e.g
return this.setState({error: err});
return this.setState({error: err.message || err});
}
if (EmbarkJS.isNewWeb3()) {
EmbarkJS.Messages.Providers.whisper.getWhisperVersion((err, _version) => {