Signed-off-by: Laurence Maultsby <laurence.maultsby@riftio.com>
}
launchNSRError(data) {
var msg = 'Something went wrong while trying to instantiate. Check the error logs for more information';
+ if(data) {
+ msg = data;
+ }
if (data.error) {
msg = data.error;
}
}).fail(function(xhr){
//Authentication and the handling of fail states should be wrapped up into a connection class.
Utils.checkAuthentication(xhr.status);
- var error;
+ var error = null;
if(xhr.responseText) {
try {
error = JSON.parse(xhr.responseText);