summaryrefslogtreecommitdiff
path: root/cmd/ponzu/options.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-09 22:28:43 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-09 22:28:43 -0700
commit72c812677caec723dc9e55679b9bca2f3d599b47 (patch)
tree9f31a3cc26ff695ff2ec47552c66cef3f167a39e /cmd/ponzu/options.go
parent06c4fedf892d065d579b95e3416b567e19ff729b (diff)
fixing import path in template for content type
Diffstat (limited to 'cmd/ponzu/options.go')
-rw-r--r--cmd/ponzu/options.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/ponzu/options.go b/cmd/ponzu/options.go
index 5b3a633..51ecdb3 100644
--- a/cmd/ponzu/options.go
+++ b/cmd/ponzu/options.go
@@ -63,7 +63,7 @@ package content
import (
"fmt"
- "../management/editor"
+ "github.com/bosssauce/ponzu/management/editor"
)
// {{ .name }} is the generic content struct
@@ -306,16 +306,19 @@ func buildPonzuServer(args []string) error {
dstFile, err := os.Create(filepath.Join(contentDstPath, srcFileInfo.Name()))
if err != nil {
+
return err
}
srcFile, err := os.Open(filepath.Join(contentSrcPath, srcFileInfo.Name()))
if err != nil {
+
return err
}
_, err = io.Copy(dstFile, srcFile)
if err != nil {
+
return err
}
}