mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
Minor fix to error message when copying static files
This commit is contained in:
@@ -216,7 +216,7 @@ func build(watches ...bool) {
|
|||||||
func copyStatic() error {
|
func copyStatic() error {
|
||||||
staticDir := helpers.AbsPathify(viper.GetString("StaticDir")) + "/"
|
staticDir := helpers.AbsPathify(viper.GetString("StaticDir")) + "/"
|
||||||
if _, err := os.Stat(staticDir); os.IsNotExist(err) {
|
if _, err := os.Stat(staticDir); os.IsNotExist(err) {
|
||||||
jww.ERROR.Println("Unable to find Static Directory:", viper.GetString("theme"), "in", staticDir)
|
jww.ERROR.Println("Unable to find Static Directory:", staticDir)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user