1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-30 06:28:58 +01:00
liquid/render/error.go
2023-05-26 23:36:28 +02:00

22 lines
427 B
Go

package render
import (
"github.com/danog/liquid/parser"
)
// An Error is an error during template rendering.
type Error interface {
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)
}