More error messages at syncing static contents

This commit is contained in:
Tatsushi Demachi 2014-09-06 10:38:36 +09:00 committed by spf13
parent acf9561a31
commit d9964451a5
2 changed files with 2 additions and 1 deletions

View file

@ -229,7 +229,7 @@ func copyStatic() error {
// Copy Static to Destination // Copy Static to Destination
jww.INFO.Println("syncing from", themeDir, "to", publishDir) 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 // Copy Static to Destination

View file

@ -15,6 +15,7 @@ func CheckErr(err error, s ...string) {
for _, message := range s { for _, message := range s {
jww.ERROR.Println(message) jww.ERROR.Println(message)
} }
jww.ERROR.Println(err)
} }
} }
} }