mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
Improve error messages for template failures
This commit is contained in:
@@ -164,7 +164,7 @@ func TestTransformPostCSSError(t *testing.T) {
|
||||
}).BuildE()
|
||||
|
||||
ferrs := herrors.UnwrapFileErrors(err)
|
||||
b.Assert(len(ferrs), qt.Equals, 1)
|
||||
b.Assert(len(ferrs), qt.Equals, 2)
|
||||
b.Assert(err.Error(), qt.Contains, "a.css:4:2")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user