In some cases, some context is annotated, however it is non-specific (see second example).
venture[script] > assert(False, "this is a message")
*** evaluation: this is a message
(autorun (assert false "this is a message"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Caused by
this is a message
If the assert takes place within an in_model context, it appears there is no annotation at all:
venture[script] > infer { m <- new_model(); in_model(m, { x_val <- sample(normal(0, 1)); assert(x_val < -100, "x_val is not less than -100") }) }
*** evaluation: x_val is not less than -100
Caused by
x_val is not less than -100
If assert statements do not provide messages for some reason, then the error is literally "Caused by:", and all we know is that the program crashed.
In some cases, some context is annotated, however it is non-specific (see second example).
If the assert takes place within an
in_model
context, it appears there is no annotation at all:If assert statements do not provide messages for some reason, then the error is literally "Caused by:", and all we know is that the program crashed.