derkork / simplegen

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

Exception when a template file does not exist #2

Closed derkork closed 5 years ago

derkork commented 7 years ago
Exception in thread "main" java.io.FileNotFoundException: SimpleGen/Templates/FeatureComponents.cs.js (No such file or directory)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at kotlin.io.FilesKt__FileReadWriteKt.readBytes(FileReadWrite.kt:52)
    at kotlin.io.FilesKt__FileReadWriteKt.readText(FileReadWrite.kt:77)
    at kotlin.io.FilesKt__FileReadWriteKt.readText$default(FileReadWrite.kt:77)
    at com.ancientlightstudios.simplegen.Materializer.materialize(Materializer.kt:59)
    at com.ancientlightstudios.simplegen.Materializer.materialize(Materializer.kt:11)
    at com.ancientlightstudios.simplegen.Runner.run(Runner.kt:23)
    at com.ancientlightstudios.simplegen.MainKt.main(Main.kt:35)

Should give a more friendly error message.