mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
More error messages at syncing static contents
This commit is contained in:
parent
acf9561a31
commit
d9964451a5
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue