So I’ve just been working for the huge update for the Generator Manager since a couple days and I wanted to share one thing I’ve been working on in the middle of the making, that is the new error handling method on the generator hub page. Instead of just throwing the error onto the DevTools Console, it also throws the error into the Perchance error box inside the generator hub page, so it is much more convenient to see what’s wrong with that feature in case I’m changing on something. And that is a custom Perchance error I just created.
This is accomplised using __perchanceError()
, and I understand this is likely a “private” function or something that isn’t guaranteed to be “backwards compatible” for long (as I understand that), but I wonder if this function was available for wide use and documented somewhere in the advanced tutorial, it’d be very good for someone to learn about. You can also put HTML into the custom error text to add some neat formatting to it.
This will be limited to the handling of generator cards and the recently updated section for now but in future updates these will be expanded to pretty much every single feature on the generator hub page.
Hey, that’s cool 👍
I thought throwing a JS error shows up in the perchance errors anyway? (If that doesn’t always happen, it should do IMO.)