Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit 849b35b

Browse files
committed
update
1 parent 7332376 commit 849b35b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/model/model.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ func Model(c *config.ModelArgument) error {
9696
outPath := filepath.Join(getwd, c.OutPath)
9797
genMainFileRootDir := filepath.Dir(outPath)
9898
buf, err := execTmpl(c)
99+
if err != nil {
100+
return fmt.Errorf("exec template fail: %w", err)
101+
}
102+
99103
return os.WriteFile(filepath.Join(genMainFileRootDir, "gen.go"), buf, 0o644)
100104
}
101105

0 commit comments

Comments
 (0)