Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cli/script/silent-catch-baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"src/lib/delta-upgrade.ts": 1,
"src/lib/detect-agent.ts": 2,
"src/lib/dev-script.ts": 2,
"src/lib/dif/find.ts": 3,
"src/lib/dif/find.ts": 0,
"src/lib/docs-context.ts": 4,
"src/lib/docs-service.ts": 1,
"src/lib/dsn/detector.ts": 1,
Expand Down
10 changes: 7 additions & 3 deletions packages/cli/src/lib/dif/find.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import { open, readFile, stat } from "node:fs/promises";
import { extname, resolve } from "node:path";
import { logger } from "../logger.js";
import { computeProguardUuid } from "../proguard.js";
import { walkFiles } from "../scan/walker.js";
import { parseDebugFile, peekFormat } from "./index.js";
Expand Down Expand Up @@ -186,7 +187,8 @@ async function tryProguard(
let uuid: string;
try {
uuid = computeProguardUuid(await readFile(path));
} catch {
} catch (error) {
logger.debug(`Skipping ProGuard candidate ${path}: read/hash failed`, error);
return;
}
const matched = matchRemaining(state, uuid);
Expand Down Expand Up @@ -220,7 +222,8 @@ async function tryObject(
} finally {
await fd.close();
}
} catch {
} catch (error) {
logger.debug(`Skipping ${path}: failed to peek format`, error);
return;
}
if (!state.formats.has(format)) {
Expand All @@ -233,7 +236,8 @@ async function tryObject(
let objects: { debugId: string }[];
try {
objects = parseDebugFile(await readFile(path)).objects;
} catch {
} catch (error) {
logger.debug(`Skipping ${path}: failed to parse debug file`, error);
return;
}
for (const obj of objects) {
Expand Down
Loading