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
assert is specified as desugaring to error. We handle error correctly in Sjsonnet: The error message is manifested as a string. But in the case of assert we cast it to a string instead, so it does not work for other types.
Compiling error {a: "b"}:
sjsonnet.Error: {"a": "b"}
at [Error].(foo:1:1)
RUNTIME ERROR: {"a": "b"}
foo:1:1-15
Compiling assert 1 == 2 : { a: "b"}; 1:
sjsonnet.Error: Expected string, found object
at [AssertExpr].(foo:1:1)
RUNTIME ERROR: {"a": "b"}
foo:1:1-29
The text was updated successfully, but these errors were encountered:
assert
is specified as desugaring toerror
. We handleerror
correctly in Sjsonnet: The error message is manifested as a string. But in the case ofassert
we cast it to a string instead, so it does not work for other types.Compiling
error {a: "b"}
:Compiling
assert 1 == 2 : { a: "b"}; 1
:The text was updated successfully, but these errors were encountered: