From 6afe70d5dae7af0cd097f6db6d8fa1a81c021eb5 Mon Sep 17 00:00:00 2001 From: bep Date: Mon, 9 Feb 2015 16:07:30 +0100 Subject: [PATCH] Better error message for data-file parsing errors --- hugolib/site.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugolib/site.go b/hugolib/site.go index a91eefcbc..c95b48611 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -285,7 +285,7 @@ func (s *Site) loadData(fs source.Input) (err error) { 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