X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2Finstantiate%2FlaunchNetworkServiceSource.js;h=6c5daaafc27855450e5ee0c9079fd164d9c41410;hp=1b2d526750a6a05e3fc6702f7307d0d2ceaf6558;hb=0c5d3b49eb9c3847c8cfedfd400a931356354d97;hpb=8dd157ab3bfef0f8a1753390959dd1ee9c9b1e31 diff --git a/skyquake/plugins/launchpad/src/instantiate/launchNetworkServiceSource.js b/skyquake/plugins/launchpad/src/instantiate/launchNetworkServiceSource.js index 1b2d52675..6c5daaafc 100644 --- a/skyquake/plugins/launchpad/src/instantiate/launchNetworkServiceSource.js +++ b/skyquake/plugins/launchpad/src/instantiate/launchNetworkServiceSource.js @@ -128,7 +128,16 @@ 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.parse(xhr.responseText); + error = JSON.parse(error.error)['rpc-reply']['rpc-error']['error-message']; + } catch(e){ + console.log(e); + } + } + reject(error); }); }) },