Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error if deletion of agent fails #1073

Merged
merged 7 commits into from
Sep 9, 2024
Merged

Error if deletion of agent fails #1073

merged 7 commits into from
Sep 9, 2024

Conversation

Tortar
Copy link
Member

@Tortar Tortar commented Sep 6, 2024

This seems the only thing to improve in remove_agent_from_space! which could have been seen as a bug (but it is not), related to the issue in #1035

@Datseris
Copy link
Member

Datseris commented Sep 9, 2024

Interpolating the whole agent struct into the string does not seem like a good idea to me. Perhaps only the ID?


Beyond this however, what is the point of this error message? A user should never directly remove an agent "only from space" and this error message said that we can't remove "from the space", not that we generally can't remove the agent. Who is this error targetting?

@Tortar
Copy link
Member Author

Tortar commented Sep 9, 2024

The main motivation here is to remove (innocuous) dynamic dispatches found by JET, because guarantees not to throw if the error path is not followed.

@Datseris
Copy link
Member

Datseris commented Sep 9, 2024

Right, ok then.

@Tortar Tortar merged commit e0d507f into main Sep 9, 2024
4 of 5 checks passed
@Tortar Tortar deleted the Tortar-patch-2 branch September 9, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants