We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3c66d4 commit e807f1bCopy full SHA for e807f1b
public/js/extra.js
@@ -378,9 +378,14 @@ export function finishView (view) {
378
$ele.html($value.text())
379
window.mermaid.init(undefined, $ele)
380
} catch (err) {
381
+ var errormessage = err
382
+ if (err.str) {
383
+ errormessage = err.str
384
+ }
385
+
386
$value.unwrap()
- $value.parent().append('<div class="alert alert-warning">' + err + '</div>')
- console.warn(err)
387
+ $value.parent().append('<div class="alert alert-warning">' + errormessage + '</div>')
388
+ console.warn(errormessage)
389
}
390
})
391
// abc.js
0 commit comments