Skip to content

Add a safe version of parsing broma files so that the code doesn't have to exit - #7

Open
CallocGD wants to merge 8 commits into
geode-sdk:mainfrom
CallocGD:main
Open

Add a safe version of parsing broma files so that the code doesn't have to exit#7
CallocGD wants to merge 8 commits into
geode-sdk:mainfrom
CallocGD:main

Conversation

@CallocGD

@CallocGD CallocGD commented Dec 8, 2024

Copy link
Copy Markdown

This is a problem with pybroma where the script will exit when it shouldn't when handling lets just say multiple at a time and I am planning to make a discord bot that can summarize the geode bindings and other important elements and with a rust port on the way getting this in here felt like a must for me as the std::exit(1) part of this code infuriates me greatly as it's just not proper error handling if that makes any sense to anybody. I feel like error handling should be customized rather than simply exiting. when something is wrong, This was my attempt at writing a solution I had another idea to use a something similar to a std::pair for handling the result if required incase this pull request gets rejected.

@CallocGD

CallocGD commented Dec 8, 2024

Copy link
Copy Markdown
Author

Nevermind I think I just made it better Gonna do a few more tweaks

@CallocGD

CallocGD commented Dec 8, 2024

Copy link
Copy Markdown
Author

Done.

camila314 added a commit that referenced this pull request May 31, 2025
@Stazzical

Copy link
Copy Markdown

Should be closed as parse_file now uses Geode's own result library for error-handling.

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