From e831350164304e8fb35314f5277e5b6f725d94a5 Mon Sep 17 00:00:00 2001 From: Xenios Papademetris Date: Tue, 8 Aug 2023 13:20:12 -0400 Subject: [PATCH] fixed missing error message --- js/webcomponents/bisweb_connectivitycontrolelement.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/webcomponents/bisweb_connectivitycontrolelement.js b/js/webcomponents/bisweb_connectivitycontrolelement.js index 0e478294..199bd5e0 100644 --- a/js/webcomponents/bisweb_connectivitycontrolelement.js +++ b/js/webcomponents/bisweb_connectivitycontrolelement.js @@ -1397,10 +1397,11 @@ const bisGUIConnectivityControl = function(parent,orthoviewer,layoutmanager) { let out=""; try { const ATLASHEADER=atlasutil.getCurrentAtlasHeader(); - out=new BisParcellation(ATLASHEADER).createParcellationFromImage(vol,atlasimage,description)+"\n"; + let m=new BisParcellation(ATLASHEADER); + out=m.createParcellationFromImage(vol,atlasimage,description)+"\n"; } catch(e) { console.log('Error=',e); - bootbox.alert(e); + bootbox.alert("Failed to import parcellation image\n"+e); reject(e); return; } @@ -2603,7 +2604,6 @@ class ConnectivityControlElement extends HTMLElement { loaddefaultatlas(externalmode) { - return new Promise( (resolve,reject) => { let prom=null;