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

Use a clearer error message when a second ZOS instance is initialized #24

Merged
merged 3 commits into from
Jul 17, 2023

Conversation

crnh
Copy link
Collaborator

@crnh crnh commented Jul 17, 2023

Currently, when a second instance of zospy.ZOS is created, an exception is thrown which states that only a single instance of ZOS can be initialized. The message doesn't state why the number of instances is limited to one, and why the exception is raised. As seen in #19, this can be confusing.

I updated the error message to include more information about the reason of this limitation and why the exception was thrown.

@jwmbeenakker jwmbeenakker merged commit 9e2eb7c into MREYE-LUMC:main Jul 17, 2023
@crnh crnh deleted the crnh_update_zos_exception branch July 17, 2023 07:09
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.

3 participants