Skip to content

Audit and fix silent error suppression (let _ =) in Rust backend #55

Description

@ryuhmanov-m

Parent issue: #20

Context

The Rust backend has multiple let _ = ... patterns on I/O operations (file writes, database calls, IPC). These silently swallow errors, making debugging difficult.

Scope

  1. Grep for let _ = across src-tauri/src/
  2. For each occurrence, determine if the error should be:
    • Propagated (? operator) — for operations where failure means the parent should fail
    • Logged (if let Err(e) = ... { tracing::warn!(...) }) — for best-effort operations
    • Kept as let _ = — only for truly fire-and-forget cases (e.g., channel send where receiver may have dropped)
  3. Replace let _ = with the appropriate pattern

Guidelines

  • Use tracing::warn! or tracing::error! for logged errors
  • Include context in log messages: what operation failed and why it matters
  • Don't change function signatures unless necessary

This is a great issue for learning the Meld codebase and Rust error handling patterns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendRust / Tauri backendbugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions