Skip to content

Commit

Permalink
Update continuous.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar authored Sep 9, 2024
1 parent a269911 commit b27adf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spaces/continuous.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function remove_agent_from_space!(
)
prev = abmspace(model).grid.stored_ids[cell_index...]
ai = findfirst(i -> i == a.id, prev)
isnothing(ai) && error(lazy"Tried to remove $(a) from the space, but that agent is not on the space")
isnothing(ai) && error(lazy"Tried to remove agent with ID $(a.id) from the space, but that agent is not on the space")
deleteat!(prev, ai)
return a
end
Expand Down

0 comments on commit b27adf9

Please sign in to comment.