Skip to content

Empty catch block found in fixLspSupport.ts WHY?! 😱 #472

@travka

Description

@travka

Description

Found an empty catch block at src/patches/fixLspSupport.ts:292

Why this is BAD:

  • Silently suppresses errors without any logging
  • Makes debugging impossible when things go wrong
  • Potential source of mysterious bugs

The code:

} catch (openErr) { }

Proposed Solution

  1. Add logging to the catch block to at least log what went wrong
  2. Consider if the error can be recovered or should be rethrown
  3. Add comment explaining why we're catching and ignoring this specific error

Priority

  • πŸ”΄ High - Error handling issue

Labels

bug, error-handling, code-quality

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions