try/catch mkws fatal errors, and keep the error message in a variable
authorWolfram Schneider <wosch@indexdata.dk>
Tue, 20 Aug 2013 16:10:22 +0000 (18:10 +0200)
committerWolfram Schneider <wosch@indexdata.dk>
Tue, 20 Aug 2013 16:10:22 +0000 (18:10 +0200)
tools/htdocs/mkws.js

index e90ff29..87decb6 100644 (file)
@@ -971,4 +971,13 @@ function debug(string) {
 
 
 /* magic */
-$(document).ready(function() { mkws_html_all(mkws_config) });
+$(document).ready(function() {
+    try {
+       mkws_html_all(mkws_config)
+    }
+
+    catch (e) {
+       mkws_config.error = e.message;
+       // alert(e.message);
+    }
+});