Signed-off-by: Laurence Maultsby <laurence.maultsby@riftio.com>
return window.location.hash = 'launchpad/' + tokenizedHash[2];
}
launchNSRError(error) {
- Alt.actions.global.showError.defer('Something went wrong while trying to instantiate. Check the error logs for more information');
+ var msg = 'Something went wrong while trying to instantiate. Check the error logs for more information';
+ // if(error) {
+ // msg = error;
+ // }
+ Alt.actions.global.showNotification.defer(msg);
Alt.actions.global.hideScreenLoader.defer();
this.setState({
isLoading: false
}).fail(function(xhr){
//Authentication and the handling of fail states should be wrapped up into a connection class.
Utils.checkAuthentication(xhr.status);
- reject();
+ var error;
+ if(xhr.responseText) {
+ try {
+ error = JSON.stringify(xhr.responseText);
+ } catch(e){
+
+ }
+ }
+ reject(error);
});
})
},