Skip to content

Commit

Permalink
More error messages at syncing static contents
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsushid authored and spf13 committed Sep 8, 2014
1 parent acf9561 commit d996445
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion commands/hugo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ func CheckErr(err error, s ...string) {
for _, message := range s {
jww.ERROR.Println(message)
}
jww.ERROR.Println(err)
}
}
}
Expand Down

0 comments on commit d996445

Please sign in to comment.