Skip to content

Commit

Permalink
feat: output full JS error in console
Browse files Browse the repository at this point in the history
  • Loading branch information
juba committed Aug 28, 2024
1 parent 963704c commit 30db4b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/pyobsplot-js/plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export function generate_plot(spec, renderer) {
out = Plot.plot(out);
}
} catch (error) {
console.error(error);
// If an error occured, display it as output
out = document.createElement("pre");
out.style.color = "#DD3333";
Expand Down

0 comments on commit 30db4b9

Please sign in to comment.