projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3580fe6
)
try/catch mkws fatal errors, and keep the error message in a variable
author
Wolfram Schneider
<wosch@indexdata.dk>
Tue, 20 Aug 2013 16:10:22 +0000
(18:10 +0200)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Tue, 20 Aug 2013 16:10:22 +0000
(18:10 +0200)
tools/htdocs/mkws.js
patch
|
blob
|
history
diff --git
a/tools/htdocs/mkws.js
b/tools/htdocs/mkws.js
index
e90ff29
..
87decb6
100644
(file)
--- 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);
+ }
+});