fix(api): correct error log message in RemoveSandbox#2449
Conversation
The log said "Error pausing sandbox" in the generic removeSandboxFromNode failure path, which covers pause, kill, and snapshot. Make it accurate.
PR SummaryLow Risk Overview Reviewed by Cursor Bugbot for commit 0776f8f. Bugbot is set up for automated code reviews on this repo. Configure here. |
Makes it possible to distinguish pause/kill/snapshot failures without cross-referencing the caller.
There was a problem hiding this comment.
LGTM — single log string fix, no behavior change.
Extended reasoning...
Overview
Single-line change in packages/api/internal/orchestrator/delete_instance.go: corrects the error log message in the RemoveSandbox generic failure path from "Error pausing sandbox" to "Error removing sandbox". This path is reached after removeSandboxFromNode returns an error, which can be triggered by pause, kill, or snapshot actions — so the old message was misleading.
Security risks
None. No logic, auth, data handling, or external interface is modified.
Level of scrutiny
Minimal scrutiny required. This is a one-line log string correction with zero behavioral impact.
Other factors
No bugs reported. No open reviewer comments. Change is mechanical and obviously correct.
The log said "Error pausing sandbox" in the generic removeSandboxFromNode failure path, which covers pause, kill, and snapshot. Make it accurate.