More error messages at syncing static contents
authorTatsushi Demachi <tdemachi@gmail.com>
Sat, 6 Sep 2014 01:38:36 +0000 (10:38 +0900)
committerspf13 <steve.francia@gmail.com>
Mon, 8 Sep 2014 15:57:06 +0000 (11:57 -0400)
commands/hugo.go
utils/utils.go

index a35a1f0017f516a77b945efef8c3eb7bbe945c73..e95b0c0d8cdc93df61288a76cd14984906437484 100644 (file)
@@ -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
index df54737fc7550b9d5189f7d74703e4b3665dad50..eaa6c09a9ceb2b946ec284065f9115e388a15d4e 100644 (file)
@@ -15,6 +15,7 @@ func CheckErr(err error, s ...string) {
                        for _, message := range s {
                                jww.ERROR.Println(message)
                        }
+                       jww.ERROR.Println(err)
                }
        }
 }