summaryrefslogtreecommitdiff
path: root/public/js/extra.js
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-03-04 23:19:49 +0800
committerCheng-Han, Wu2016-03-04 23:19:49 +0800
commitee5eddaff435ebc65b61967d9d1a5142f6109690 (patch)
tree9a726df685a5978f934e9c228af2cf32d91d7f82 /public/js/extra.js
parent049eae502456cac83b5266df6defaba4d130d820 (diff)
Changed all parsing exception console message type to warning
Diffstat (limited to 'public/js/extra.js')
-rw-r--r--public/js/extra.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/public/js/extra.js b/public/js/extra.js
index e0f78b22..1752eb5b 100644
--- a/public/js/extra.js
+++ b/public/js/extra.js
@@ -203,7 +203,7 @@ function finishView(view) {
try {
emojify.run(view[0]);
} catch (err) {
- console.error(err);
+ console.warn(err);
}
//mathjax
var mathjaxdivs = view.find('.mathjax.raw').removeClass("raw").toArray();
@@ -226,7 +226,7 @@ function finishView(view) {
});
sequence.parent().parent().replaceWith(sequence);
} catch (err) {
- console.error(err);
+ console.warn(err);
}
});
//flowchart
@@ -243,7 +243,7 @@ function finishView(view) {
});
$(value).parent().parent().replaceWith(value);
} catch (err) {
- console.error(err);
+ console.warn(err);
}
});
//graphviz
@@ -254,7 +254,7 @@ function finishView(view) {
$(value).html(graphviz);
$(value).parent().parent().replaceWith(value);
} catch (err) {
- console.error(err);
+ console.warn(err);
}
});
//image href new window(emoji not included)
@@ -837,7 +837,7 @@ function meta(state, start, end, silent) {
try {
md.meta = jsyaml.safeLoad(data.join('\n')) || {};
} catch(err) {
- console.error(err);
+ console.warn(err);
return false;
}