Fix Hugo hang up with empty content directory
authorTatsushi Demachi <tdemachi@gmail.com>
Sun, 31 Jan 2016 15:21:12 +0000 (00:21 +0900)
committerTatsushi Demachi <tdemachi@gmail.com>
Tue, 2 Feb 2016 23:19:02 +0000 (08:19 +0900)
commit68e2e63d92d238ad9b8a714acd2467bb43122ada
tree28b0c57ce9aaa76dc6b7080cd854f238dd667ab2
parentec02b9908cef4f4e022d9bd207c64a3ca086b57a
Fix Hugo hang up with empty content directory

Site.ReadPagesFromSource returns nil chan error value when a site
content directory is empty but its receiver expects to be passed
something error values via the channel.

This fixes it by returning a channel which will be immediately closed.

Fix #1797
hugolib/site.go