When building a plugin, how do I show errors to the user?
At the moment I’m using this:
if (variable_that_equates_to_true) {
throw new Error(
"Error text goes here"
);
}
But it just prints the error to the console. I want it to display as an alert (or something similar) to the user.
Bubble shows errors in alert messages for a myriad of other things. Is there anyway to hook into that?