This commit is contained in:
jdl 2024-11-30 07:35:54 +01:00
parent 9061198e7f
commit 4993940aca

View File

@ -11,7 +11,11 @@ import (
//go:embed gen.go.tmpl
var fileTemplate string
func render(driver, schemaPath, outputPath string) error {
func render(driver, schemaPath, outputPath string) (err error) {
outputPath, err = filepath.Abs(outputPath)
if err != nil {
return err
}
sch, err := parsePath(driver, schemaPath)
if err != nil {
return err