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
called `Result::unwrap()` on an `Err` value: Error { inner: InnerError { msg: "Unknown variable", user_backtrace: [Trace { trace: None, context: [("requested variable", "product_price")] }], cause: None } }note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Maybe i missed something but shouldent the output be the default value?
As stated on https://liquidjs.com/filters/default.html
Also, if the variable isnt there and default is not provided, shouldent there be nothing at all instead of crashing?
I might be in the wrong, so please correct me if i am!
The text was updated successfully, but these errors were encountered:
liquid-rust version: 0.26.9
rust version: rustc 1.82.0
OS: Windows
If i pass in an empty object but the template tries to read the variable, it will crash.
Reproduction of my issue:
The error:
Maybe i missed something but shouldent the output be the default value?
As stated on https://liquidjs.com/filters/default.html
Also, if the variable isnt there and default is not provided, shouldent there be nothing at all instead of crashing?
I might be in the wrong, so please correct me if i am!
The text was updated successfully, but these errors were encountered: