shithub: hugo

Download patch

ref: 6afe70d5dae7af0cd097f6db6d8fa1a81c021eb5
parent: 1c50f775b55cf580109075e6520f93db3f1a404a
author: bep <[email protected]>
date: Mon Feb 9 11:07:30 EST 2015

Better error message for data-file parsing errors

--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -285,7 +285,7 @@
 
 		data, err := readData(r)
 		if err != nil {
-			return err
+			return fmt.Errorf("Failed to read data from %s: %s", filepath.Join(r.Path(), r.LogicalName()), err)
 		}
 
 		// Copy content from current to data when needed