summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTatsushi Demachi <tdemachi@gmail.com>2014-09-06 10:38:36 +0900
committerspf13 <steve.francia@gmail.com>2014-09-08 11:57:06 -0400
commitd9964451a570aec28116f9f0a35d54a2a42fc6ce (patch)
tree20ec86c63a21e66ce91ad59ac76ca44cd08ceb58
parentacf9561a312207ec3c64c098d09bb1b039e06548 (diff)
More error messages at syncing static contents
-rw-r--r--commands/hugo.go2
-rw-r--r--utils/utils.go1
2 files changed, 2 insertions, 1 deletions
diff --git a/commands/hugo.go b/commands/hugo.go
index a35a1f001..e95b0c0d8 100644
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -229,7 +229,7 @@ func copyStatic() error {
// Copy Static to Destination
jww.INFO.Println("syncing from", themeDir, "to", publishDir)
- fsync.Sync(publishDir, themeDir)
+ utils.CheckErr(fsync.Sync(publishDir, themeDir), fmt.Sprintf("Error copying static files of theme to %s", publishDir))
}
// Copy Static to Destination
diff --git a/utils/utils.go b/utils/utils.go
index df54737fc..eaa6c09a9 100644
--- a/utils/utils.go
+++ b/utils/utils.go
@@ -15,6 +15,7 @@ func CheckErr(err error, s ...string) {
for _, message := range s {
jww.ERROR.Println(message)
}
+ jww.ERROR.Println(err)
}
}
}