Skip to content

Conversation

@dobrac
Copy link
Contributor

@dobrac dobrac commented Oct 9, 2025

This PR should hide the cryptic error messages when the build is simply cancelled.


Note

Standardizes the canceled-build reason constant and updates builder logging to explicitly handle context cancellation, with server delete flow using the new constant.

  • Template Build:
    • Logging: builder.go now treats context.Canceled distinctly and logs a clear cancellation message using buildcache.CanceledBuildReason.
    • Cache: Rename and convert CancelledBuildReason var to const CanceledBuildReason in template/cache/build_cache.go.
    • Server: server/delete_template.go updated to reference cache.CanceledBuildReason when marking running builds as failed.

Written by Cursor Bugbot for commit 082939d. This will update automatically on new commits. Configure here.

@dobrac dobrac added the improvement Improvement for current functionality label Oct 9, 2025
@e2b-request-same-site-reviewers e2b-request-same-site-reviewers bot requested review from jakubno and removed request for ValentaTomas and jakubno October 9, 2025 10:24
cursor[bot]

This comment was marked as outdated.

@dobrac dobrac changed the title Improve build cancelation error message Improve build cancellation error message Oct 9, 2025
Copy link
Member

@jakubno jakubno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIts

@jakubno jakubno self-assigned this Oct 9, 2025
@dobrac dobrac requested a review from jakubno October 9, 2025 10:33
@dobrac dobrac enabled auto-merge (squash) October 9, 2025 10:34
@dobrac dobrac merged commit c23dd0e into main Oct 9, 2025
25 checks passed
@dobrac dobrac deleted the improve-build-cancelation-error-message branch October 9, 2025 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improvement for current functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants