Skip to content

Commit 7dd6d87

Browse files
committed
Improve error handling
1 parent e1cf8e3 commit 7dd6d87

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/core/source/GitHubStream.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,11 @@ export default class GitHubStream extends GitHubBase {
214214
stream2.destroy(wrapped);
215215
});
216216

217-
storage.write(repoId, filePath, stream1, this.type);
217+
// Fire-and-forget: storage.write logs its own failures inside FileSystem
218+
// (`[fs] write failed`). Swallow the rejection here so an upstream error
219+
// (e.g. GitHub 422 on a too-big blob) doesn't surface as an unhandled
220+
// promise rejection and crash the streamer process.
221+
storage.write(repoId, filePath, stream1, this.type).catch(() => {});
218222
return stream2;
219223
}
220224

0 commit comments

Comments
 (0)