Minor fix to error message when copying static files
authorOscar Bolmsten <oscar@bolmsten.se>
Sun, 5 Oct 2014 07:41:54 +0000 (09:41 +0200)
committerspf13 <steve.francia@gmail.com>
Tue, 7 Oct 2014 21:17:51 +0000 (17:17 -0400)
commands/hugo.go

index 0fb76c7cda4a8f2c0298ebce5c849504f1b8c74e..1d3bdcd93afea40fe8590dd494d303ab3cb32011 100644 (file)
@@ -216,7 +216,7 @@ func build(watches ...bool) {
 func copyStatic() error {
        staticDir := helpers.AbsPathify(viper.GetString("StaticDir")) + "/"
        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
        }
 
@@ -225,7 +225,7 @@ func copyStatic() error {
        if themeSet() {
                themeDir := helpers.AbsPathify("themes/"+viper.GetString("theme")) + "/static/"
                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
                }