Improve error handling

This commit is contained in:
tdurieux
2026-05-06 12:44:07 +03:00
parent e1cf8e3a00
commit 7dd6d872e9
+5 -1
View File
@@ -214,7 +214,11 @@ export default class GitHubStream extends GitHubBase {
stream2.destroy(wrapped);
});
storage.write(repoId, filePath, stream1, this.type);
// Fire-and-forget: storage.write logs its own failures inside FileSystem
// (`[fs] write failed`). Swallow the rejection here so an upstream error
// (e.g. GitHub 422 on a too-big blob) doesn't surface as an unhandled
// promise rejection and crash the streamer process.
storage.write(repoId, filePath, stream1, this.type).catch(() => {});
return stream2;
}