mirror of https://github.com/embarklabs/embark.git
Better error message
This commit is contained in:
parent
d90774a50e
commit
fd89a1dcd3
|
@ -108,15 +108,15 @@ class Storage extends React.Component {
|
||||||
let isRegisterError = false;
|
let isRegisterError = false;
|
||||||
if (err) {
|
if (err) {
|
||||||
isRegisterError = true;
|
isRegisterError = true;
|
||||||
responseRegister = "Name Register Error: " + err.message
|
responseRegister = "Name Register Error: " + (err.message || err)
|
||||||
} else {
|
} else {
|
||||||
responseRegister = name;
|
responseRegister = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
responseRegister: responseRegister,
|
|
||||||
registering: false,
|
registering: false,
|
||||||
isRegisterError: isRegisterError
|
responseRegister,
|
||||||
|
isRegisterError
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -130,15 +130,15 @@ class Storage extends React.Component {
|
||||||
let isResolverError = false;
|
let isResolverError = false;
|
||||||
if (err) {
|
if (err) {
|
||||||
isResolverError = true;
|
isResolverError = true;
|
||||||
responseResolver = "Name Resolve Error: " + err.message
|
responseResolver = "Name Resolve Error: " + (err.message || err)
|
||||||
} else {
|
} else {
|
||||||
responseResolver = path;
|
responseResolver = path;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
responseResolver: responseResolver,
|
|
||||||
resolving: false,
|
resolving: false,
|
||||||
isResolverError: isResolverError
|
responseResolver,
|
||||||
|
isResolverError
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue