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

Crash when generating invalid parameter error message #1012

Open
LourensVeen opened this issue Nov 27, 2023 · 0 comments
Open

Crash when generating invalid parameter error message #1012

LourensVeen opened this issue Nov 27, 2023 · 0 comments

Comments

@LourensVeen
Copy link
Collaborator

Describe the bug
When trying to set a parameter on a code that does not have that parameter, AMUSE tries to generate a clear error message to raise, but crashes when doing so, resulting in a difficult-to-understand exception being raised instead.

To Reproduce
Set a parameter on a code that does not have it.

Expected behavior
An exception raised with clear error message along the lines of "code X does not have parameter Y".

Additional context
Reported by @cconroy20 in #1004. See my comments there on where the bug is. We still need to figure out if we can get the name of the code, and if so, how.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant