mirror of
https://github.com/danog/liquid.git
synced 2024-11-30 07:28:56 +01:00
c32908a4f3
When user-defined function is called, it does convert all the arguments using MustConvert, which panics on error with an error. However 'func (e expression) Evaluate(ctx Context)' from sub package "expressions" catches those panics and converts some of them to errors. Raw errors returned from strconv functions are "repanicked", but proper error types such as values.TypeError are not. Hence we should use it here. |
||
---|---|---|
.. | ||
arrays.go | ||
call_test.go | ||
call.go | ||
compare_test.go | ||
compare.go | ||
convert_test.go | ||
convert.go | ||
docs.go | ||
drop_test.go | ||
drop.go | ||
evaluator_test.go | ||
mapslicevalue.go | ||
parsedate_test.go | ||
parsedate.go | ||
predicates_test.go | ||
predicates.go | ||
range.go | ||
sort.go | ||
structvalue_test.go | ||
structvalue.go | ||
value_test.go | ||
value.go |