good morning!!!!

Skip to content
Snippets Groups Projects
Commit 44fc6a0b authored by a's avatar a
Browse files

a

parent 74d4ca40
Branches
Tags
No related merge requests found
...@@ -98,7 +98,7 @@ func (t *Sanctum) Pray() error { ...@@ -98,7 +98,7 @@ func (t *Sanctum) Pray() error {
return fmt.Errorf("exec tmpl=%s obj=%+v args=%v err=%w", v.Input, v.Obj, v.Args, err) return fmt.Errorf("exec tmpl=%s obj=%+v args=%v err=%w", v.Input, v.Obj, v.Args, err)
} }
t.fs.MkdirAll(v.PackagePath, 0777) t.fs.MkdirAll(v.PackagePath, 0777)
file, err := t.fs.Open(path.Join(v.PackagePath, v.FileName)) file, err := t.fs.Create(path.Join(v.PackagePath, v.FileName))
defer file.Close() defer file.Close()
if err != nil { if err != nil {
return fmt.Errorf("openfile tmpl=%s obj=%+v args=%v err=%w", v.Input, v.Obj, v.Args, err) return fmt.Errorf("openfile tmpl=%s obj=%+v args=%v err=%w", v.Input, v.Obj, v.Args, err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment