Parcourir la source

display error if webserver not setup or error connecting to organizr api

CauseFX il y a 5 ans
Parent
commit
7042b3589e
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      js/functions.js

+ 2 - 0
js/functions.js

@@ -10408,6 +10408,8 @@ function launch(){
 		if(xhr.status == 404){
 		if(xhr.status == 404){
 			orgErrorAlert('<h2>Webserver not setup for Organizr v2.1</h2><h4>Please goto <a href="https://docs.organizr.app/books/setup-features/page/organizr-20--%3E-21-migration-guide">Migration guide to complete the changes...</a></h4><h3>Webserver Error:</h3>' + xhr.responseText);
 			orgErrorAlert('<h2>Webserver not setup for Organizr v2.1</h2><h4>Please goto <a href="https://docs.organizr.app/books/setup-features/page/organizr-20--%3E-21-migration-guide">Migration guide to complete the changes...</a></h4><h3>Webserver Error:</h3>' + xhr.responseText);
 			message('FATAL ERROR','You need to update webserver location block... check browser console for migration URL','br','#FFF','error','60000');
 			message('FATAL ERROR','You need to update webserver location block... check browser console for migration URL','br','#FFF','error','60000');
+		}else{
+			orgErrorAlert('<h3>Webserver Error:</h3>' + xhr.responseText);
 		}
 		}
 	});
 	});
 }
 }