mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-20 07:13:06 +00:00
Minor fix to error message when copying static files
This commit is contained in:
parent
4b9e4c90d9
commit
b98c2088f8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -225,7 +225,7 @@ func copyStatic() error {
|
||||||
if themeSet() {
|
if themeSet() {
|
||||||
themeDir := helpers.AbsPathify("themes/"+viper.GetString("theme")) + "/static/"
|
themeDir := helpers.AbsPathify("themes/"+viper.GetString("theme")) + "/static/"
|
||||||
if _, err := os.Stat(themeDir); os.IsNotExist(err) {
|
if _, err := os.Stat(themeDir); os.IsNotExist(err) {
|
||||||
jww.ERROR.Println("Unable to find static directory for theme :", viper.GetString("theme"), "in", themeDir)
|
jww.ERROR.Println("Unable to find static directory for theme:", viper.GetString("theme"), "in", themeDir)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue