You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
b.Assert(err.Error(), qt.Contains, filepath.FromSlash(`"/layouts/home.html:2:1": parse of template failed: template: home.html:2: function "foo" not defined`))
248
+
}
249
+
250
+
funcTestErrorMessageExecuteError(t*testing.T) {
251
+
t.Parallel()
252
+
253
+
files:=`
254
+
-- hugo.toml --
255
+
-- layouts/home.html --
256
+
Line 1.
257
+
Line 2. {{ .Foo }} <- this method does not exist.
258
+
Line 3.
259
+
`
260
+
261
+
b, err:=hugolib.TestE(t, files)
262
+
b.Assert(err, qt.IsNotNil)
263
+
b.Assert(err.Error(), qt.Contains, filepath.FromSlash(` "/layouts/home.html:2:11": execute of template failed`))
0 commit comments