How to capture the error message from plotly javascript?

How to capture the error message returned by plotly javascript?

Try something like:

Plotly.newPlot('graph, [/* */])
.catch(function(reason) {
 // ...
})
1 Like