Changed all parsing exception console message type to warning

This commit is contained in:
Cheng-Han, Wu 2016-03-04 23:19:49 +08:00
parent 049eae5024
commit ee5eddaff4
1 changed files with 5 additions and 5 deletions

View File

@ -203,7 +203,7 @@ function finishView(view) {
try { try {
emojify.run(view[0]); emojify.run(view[0]);
} catch (err) { } catch (err) {
console.error(err); console.warn(err);
} }
//mathjax //mathjax
var mathjaxdivs = view.find('.mathjax.raw').removeClass("raw").toArray(); var mathjaxdivs = view.find('.mathjax.raw').removeClass("raw").toArray();
@ -226,7 +226,7 @@ function finishView(view) {
}); });
sequence.parent().parent().replaceWith(sequence); sequence.parent().parent().replaceWith(sequence);
} catch (err) { } catch (err) {
console.error(err); console.warn(err);
} }
}); });
//flowchart //flowchart
@ -243,7 +243,7 @@ function finishView(view) {
}); });
$(value).parent().parent().replaceWith(value); $(value).parent().parent().replaceWith(value);
} catch (err) { } catch (err) {
console.error(err); console.warn(err);
} }
}); });
//graphviz //graphviz
@ -254,7 +254,7 @@ function finishView(view) {
$(value).html(graphviz); $(value).html(graphviz);
$(value).parent().parent().replaceWith(value); $(value).parent().parent().replaceWith(value);
} catch (err) { } catch (err) {
console.error(err); console.warn(err);
} }
}); });
//image href new window(emoji not included) //image href new window(emoji not included)
@ -837,7 +837,7 @@ function meta(state, start, end, silent) {
try { try {
md.meta = jsyaml.safeLoad(data.join('\n')) || {}; md.meta = jsyaml.safeLoad(data.join('\n')) || {};
} catch(err) { } catch(err) {
console.error(err); console.warn(err);
return false; return false;
} }