Skip to content

fix(dif): log errors in tryProguard and tryObject catch blocks - #1513

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
fix/dif-find-silent-catches
Draft

fix(dif): log errors in tryProguard and tryObject catch blocks#1513
cursor[bot] wants to merge 1 commit into
mainfrom
fix/dif-find-silent-catches

Conversation

@cursor

@cursor cursor Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Bug

tryProguard() and tryObject() in src/lib/dif/find.ts contained three silent catch blocks that discarded errors when reading, hashing, or parsing debug-information files during debug-files find.

Root cause

Three catch blocks used bare catch { return; } without any logging, violating the project's silent-catch prohibition. Users running sentry debug-files find had no way to diagnose why certain files were silently skipped.

Reproduction

Any file I/O error (permissions, corrupted files, disk issues) during debug file scanning would be silently swallowed, providing no diagnostic output even with --verbose.

Fix

  • Added logger.debug() to all three catch blocks in tryProguard (ProGuard UUID computation) and tryObject (format peek + debug file parse)
  • Updated the silent-catch baseline to reflect the fixes
Open in Web View Automation 

Three catch blocks in find.ts silently discarded errors when reading,
hashing, or parsing debug-information files. Users running
`debug-files find` had no way to tell why certain files were skipped.
Added logger.debug() to each catch block so failures appear with
--verbose.

Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cli Ready Ready Preview Aug 31, 2026 12:14pm

Request Review

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