derkork / simplegen

A simple yet powerful general-purpose code generator
Other
9 stars 1 forks source link

Add better error message when `nodes` is missing in a transformation #32

Closed derkork closed 2 years ago

derkork commented 3 years ago

Currently we get that:

java.lang.IllegalArgumentException: path can not be null or empty
        at com.jayway.jsonpath.internal.Utils.notEmpty(Utils.java:386)
        at com.jayway.jsonpath.internal.JsonContext.read(JsonContext.java:138)
        at com.jayway.jsonpath.JsonPath.read(JsonPath.java:488)
        at com.ancientlightstudios.simplegen.Materializer.materialize(Materializer.kt:96)
        at com.ancientlightstudios.simplegen.Materializer.materialize(Materializer.kt:21)
        at com.ancientlightstudios.simplegen.Runner.run(Runner.kt:45)
        at com.ancientlightstudios.simplegen.MainKt.main(Main.kt:47)