Skip to content

Commit adf1844

Browse files
author
Zhou Hao
committed
generate: fix error return
Signed-off-by: Zhou Hao <zhouhao@cn.fujitsu.com>
1 parent 269c1cd commit adf1844

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

generate/generate.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ func NewFromFile(path string) (Generator, error) {
233233
if os.IsNotExist(err) {
234234
return Generator{}, fmt.Errorf("template configuration at %s not found", path)
235235
}
236+
return Generator{}, err
236237
}
237238
defer cf.Close()
238239

0 commit comments

Comments
 (0)