Get formatted error from CombinedPropertyError
Is there a way to get the pretty formated text from a CombinedPropertyError (or the errors that come when you make, for example, an EmbedBuilder incorrectly) other than logging the error? I want to access the string that is logged from within my js program for a custom logging solution.
2 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!nevermind, it's this https://nodejs.dev/en/api/v18/util/#custom-inspection-functions-on-objects
Util | Node.js v18 API
Util | Node.js v18 API
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.