ref: d9964451a570aec28116f9f0a35d54a2a42fc6ce
parent: acf9561a312207ec3c64c098d09bb1b039e06548
author: Tatsushi Demachi <[email protected]>
date: Sat Sep 6 06:38:36 EDT 2014
More error messages at syncing static contents
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -229,7 +229,7 @@
// 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
--- a/utils/utils.go
+++ b/utils/utils.go
@@ -15,6 +15,7 @@
for _, message := range s {
jww.ERROR.Println(message)
}
+ jww.ERROR.Println(err)
}
}
}