Skip to content

fix(#41): Replace unwrap/expect with proper error handling#77

Open
SH20RAJ wants to merge 3 commits intomofa-org:mainfrom
SH20RAJ:fix/41-error-handling
Open

fix(#41): Replace unwrap/expect with proper error handling#77
SH20RAJ wants to merge 3 commits intomofa-org:mainfrom
SH20RAJ:fix/41-error-handling

Conversation

@SH20RAJ
Copy link
Copy Markdown

@SH20RAJ SH20RAJ commented Mar 29, 2026

Fixes issue #41: Replace panic-based error handling with Result-based error propagation. Changes applied to 4 files with proper error logging and recovery mechanisms for mutex poisoning and engine initialization failures.

SH20RAJ added 3 commits March 28, 2026 20:25
Fix typo 'setings' -> 'settings' in the benefits section of TabId enum documentation.
- Replace engine.as_mut().unwrap() with graceful error handling including logging
- Replace mutex poisoning expect() with into_inner() recovery mechanism
- Replace test unwrap() calls with expect() providing descriptive messages
- Affected files:
  - node-hub/dora-funasr-nano-mlx/src/main.rs
  - apps/mofa-asr/src/screen/mod.rs
  - mofa-dora-bridge/src/parser.rs
  - node-hub/dora-gpt-sovits-mlx/src/ssml.rs

Addresses potential runtime crashes from panic-based error handling.
@SH20RAJ
Copy link
Copy Markdown
Author

SH20RAJ commented Mar 29, 2026

Checked status: this PR is pending maintainer review/merge from upstream maintainers. I’m available to address feedback quickly.

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.

1 participant