From 30db4b9b010ef36b2e0dc554e6763f93dbb08d63 Mon Sep 17 00:00:00 2001 From: Julien Barnier Date: Wed, 28 Aug 2024 11:24:09 +0200 Subject: [PATCH] feat: output full JS error in console --- packages/pyobsplot-js/plot.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/pyobsplot-js/plot.js b/packages/pyobsplot-js/plot.js index f45b939..d005dbd 100644 --- a/packages/pyobsplot-js/plot.js +++ b/packages/pyobsplot-js/plot.js @@ -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";