1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-30 08:39:01 +01:00
liquid/render/error.go
2017-07-12 07:12:14 -04:00

22 lines
429 B
Go

package render
import (
"github.com/osteele/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)
}