Correct Way to Display Spark.Error.DslError?
Hi! Iโm writing a custom DSL extension and Iโm struggling with making
I followed patterns from core Ash code (like
This seems not to raise, so I tried again this time in the transformer code:
This raises as expected, but the error isn't tied to the DSL location. It does show up, but only on line 1 of the module.
Is there a recommended way to raise
Any help or examples appreciated!
Spark.Error.DslError show up in the right place.I followed patterns from core Ash code (like
default_accept.ex and verify_identities.ex), and also looked at extensions like Ash Cloak. Here's what I did in my verifier:This seems not to raise, so I tried again this time in the transformer code:
This raises as expected, but the error isn't tied to the DSL location. It does show up, but only on line 1 of the module.
Is there a recommended way to raise
Spark.Error.DslError so that it points you to the invalid DSL section or field?Any help or examples appreciated!
