How do I detect javascript errors with Katalon?

See this thread, but be aware, Firefox does not support “non-standard” APIs like this: