From: Wolfram Schneider Date: Tue, 20 Aug 2013 16:10:22 +0000 (+0200) Subject: try/catch mkws fatal errors, and keep the error message in a variable X-Git-Tag: 0.9.1~202^2~114 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=1acd004e94b12cd4677265b5dc6aa55c48fe2af6 try/catch mkws fatal errors, and keep the error message in a variable --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index e90ff29..87decb6 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -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); + } +});