1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-30 06:19:00 +01:00
liquid/render/error.go

22 lines
427 B
Go
Raw Permalink Normal View History

package render
import (
2022-01-06 18:43:17 +01:00
"github.com/danog/liquid/parser"
)
// An Error is an error during template rendering.
type Error interface {
2017-07-12 13:12:14 +02:00
Path() string
LineNumber() int
Cause() error
Error() string
}
func renderErrorf(loc parser.Locatable, format string, a ...interface{}) Error {
return parser.Errorf(loc, format, a...)
}
func wrapRenderError(err error, loc parser.Locatable) Error {
return parser.WrapError(err, loc)
}