refactor(main): improve code structure and error handling 154ea17 cotcotquedec commited on Oct 26, 2024