`DataSourceVariableSupport` Not throwing Errors in Dashboard variables

I’m building a Grafana datasource plugin with go sdk backend. Grafana v9.3.6 sdk v0.149.1

While adding variable support I came across this, which is using the deprecated solution to add variable query editor.

I figured out about extending DataSourceVariableSupport, and created variables.ts and made a Vairable Support for my datasource using extending the DataSourceVariableSupport and then using it in this.variables in datasource.ts
But now it’s not throwing any error messages for wrong queries. Can anyone help me on how to fix this. Thanks!