Signed-off-by: Laurence Maultsby <laurence.maultsby@riftio.com>
}
launchNSRError(error) {
var msg = 'Something went wrong while trying to instantiate. Check the error logs for more information';
- // if(error) {
- // msg = error;
- // }
+ if(error) {
+ msg = error;
+ }
Alt.actions.global.showNotification.defer(msg);
Alt.actions.global.hideScreenLoader.defer();
this.setState({
var error;
if(xhr.responseText) {
try {
- error = JSON.stringify(xhr.responseText);
+ error = JSON.parse(xhr.responseText);
+ error = JSON.parse(error.error)['rpc-reply']['rpc-error']['error-message'];
} catch(e){
-
+ console.log(e);
}
}
reject(error);