agicommies / communex

alternative commune cli/sdk
MIT No Attribution
25 stars 16 forks source link

Custom error handling #31

Open Bakobiibizo opened 5 months ago

Bakobiibizo commented 5 months ago

Got into the weeds there a bit, but I refactored existing errors and errors that were described in the doc strings to have custom error classes with descriptions. It is a wide change across the code base, I believe it has been done correctly. It will need to be vetted and tested extensively before being deployed to main. Particularly the module/client.py as that has the most extensive revisions. This is in preparation to update the cli to automatically display the help menu of the menu you're on when you make an error with a command for the cli inputs. Which i will get to at some point. There is a logger included in the repo, its currently not being used anywhere since you have your own messaging solution, but i did want to ask how i should go about displaying the help menu. makes more sense to use existing messaging, i think i got ahead of my self. Let me know how you'd like me to proceed. I wont have a ton more time this week, but i should be able to tackle it again by end of the weekend. Full disclosure, this was done by an AI agent. I have it tuned to do tasks like this very accurately but there is still a good 5% of wiggle room for error, so I would not be surprised if there were a few things that were slightly out of whack.