fix(storage): handleClientUpload throwing errors#74
Conversation
Greptile SummaryThis PR adds defensive error handling to Changes:
Minor issues found:
Confidence Score: 4/5Safe to merge — the error handling fix is correct for the common case; the unsafe destructuring is a low-likelihood edge case with the AWS SDK. The core fix is sound and addresses the stated problem. The only remaining issues are P2 style concerns around the unsafe Both changed files share the same unsafe error destructuring pattern in their catch blocks. Important Files Changed
Reviews (1): Last reviewed commit: "fix(storage): handleClientUpload throwin..." | Re-trigger Greptile |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
|
🎉 This PR is included in version 2.15.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.4.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |

Note
Low Risk
Low risk: changes are limited to error handling/wrapping in storage upload helpers and add a small shared
toErrorutility; main behavior change is returning structured errors instead of throwing.Overview
Prevents server-side upload helpers from throwing by normalizing unknown exceptions into
Errorresponses.Adds shared
toErrorand uses it inhandleClientUpload,put, andinitMultipartUploadto wrap/catch failures (including adding more descriptive multipart-init errors), so callers consistently receive{ error: Error }rather than uncaught exceptions.Written by Cursor Bugbot for commit 9474601. This will update automatically on new commits. Configure here.