This is my code:
<div id="highcharts-sjlyUWsr">
<script src="https://app.everviz.com/inject/sjlyUWsr/" defer="defer" onerror="failed(${sightlyVariable})"></script>
</div>
Notice : I have passed sightly variable in javascript function which is throwing an error message and not working.
Did you try this?
<script src="https://app.everviz.com/inject/sjlyUWsr/"
data-sly-test.err="failed('${sightlyVariable}')" defer="defer" onerror="${err@ context='attribute'}"
></script>