Commit 96cd99d
authored
fix(fs): ignore ELOOP errors during file scanning (#1320)
Previously, `ELOOP` errors (too many symbolic links encountered, often
due to cyclic symlinks) were being reported to Sentry when the CLI
scanned for files like `.env.local`.
The `isIgnorableFileError` function in `src/lib/dsn/fs-utils.ts` did not
include `ELOOP` in its allowlist of file system errors that should be
silently ignored. This led to noisy Sentry captures for expected
filesystem conditions.
This change adds `ELOOP` to the list of ignorable error codes in
`isIgnorableFileError` and updates the corresponding JSDoc, ensuring
these errors are now correctly handled and not reported.
Fixes
[CLI-2CK](https://sentry.sentry.io/issues/7642577038/?seerDrawer=true)
<sub>Comment `@sentry <feedback>` on this PR to have Autofix iterate on
the changes.</sub>
Co-authored-by: sentry[bot] <39604003+sentry[bot]@users.noreply.github.com>1 parent dd0af5e commit 96cd99d
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
0 commit comments