#match error output against string

3 messages · Page 1 of 1 (latest)

wicked fossil

how can i check if the error output (not message) contains this specific string?

grand vergeBOT
  • 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!
languid plinth

util.inspect(infraction).includes but that’s a really bad way to handle errors.