mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
More error messages at syncing static contents
This commit is contained in:
@@ -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
|
||||
|
@@ -15,6 +15,7 @@ func CheckErr(err error, s ...string) {
|
||||
for _, message := range s {
|
||||
jww.ERROR.Println(message)
|
||||
}
|
||||
jww.ERROR.Println(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user