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

ENH: Error message pop-up #111

Merged
merged 8 commits into from
Oct 25, 2024
Merged

ENH: Error message pop-up #111

merged 8 commits into from
Oct 25, 2024

Conversation

YektaY
Copy link
Collaborator

@YektaY YektaY commented Oct 23, 2024

Description

This PR makes a base BadgerError class and then adds a popup that contains a message for the user. It also changes the name of BadgerRunTerminatedError exception to BadgerRunTerminated

@YektaY YektaY linked an issue Oct 23, 2024 that may be closed by this pull request
@YektaY YektaY marked this pull request as ready for review October 25, 2024 18:42
@YektaY
Copy link
Collaborator Author

YektaY commented Oct 25, 2024

ok, this is ready for review. I would definitely try it out and let me know if you want any other changes or features.

@roussel-ryan
Copy link
Collaborator

Looks mostly good, but the detailed traceback is not being shown
image

@YektaY
Copy link
Collaborator Author

YektaY commented Oct 25, 2024

Ok, I have added the traceback of the exception or the call stack - it looks like a lot of the issues are raised outside of a try except block, so the popup occurs before the exception, so instead it displays the call stack in these cases.

@roussel-ryan
Copy link
Collaborator

Yep that works, can we wrap the following code in a BadgerRuntime Error or similar such that the errorbox pops up
File "/home/rroussel/Badger/src/badger/core_subprocess.py", line 229, in run_routine_subprocess
raise e

@roussel-ryan roussel-ryan merged commit 9ef728e into xopt-org:main Oct 25, 2024
5 checks passed
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.

No error popup when saving routine if no generator is selected
2 participants