RIFT-14970: Display general error message when ns fails to launch
[osm/UI.git] / skyquake / plugins / launchpad / src / instantiate / launchNetworkServiceSource.js
index 1b2d526..b4b7173 100644 (file)
@@ -128,7 +128,15 @@ export default function(Alt){
           }).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);
           });
         })
       },