Rendering HTML can expose you to XSS attacks. Only enable it if you trust the author of the script.
{result.error.stack ?? ''}