Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/debug_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ julia> # Notice that VarInfo(model_incorrect) evaluates the model, but doesn't a
model = demo_incorrect(); varinfo = VarInfo(model);

julia> check_model(model; error_on_failure=true)
ERROR: varname x used multiple times in model
┌ Warning: Assigning to the variable x led to a previous value being overwritten. This indicates that a value is being set twice (e.g. if the same variable occurs in a model twice).
└ @ DynamicPPL.DebugUtils DynamicPPL.jl/src/debug_utils.jl:237
ERROR: Model check failed; please see the warnings above for details.
```
"""
function check_model(
Expand Down
Loading