deleteSnapshotFromLocalDB silently ignores all errors #6
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/vaultik#6
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In
snapshot.go,deleteSnapshotFromLocalDB()logs errors but always returns nil:Callers like
PurgeSnapshotscheck the error and log it, but since this always returns nil, errors during local DB cleanup are silently lost. At minimum, errors should be collected and returned as a combined error.Ref: parent issue #1
Taking this on now. Will fix deleteSnapshotFromLocalDB to properly return errors instead of silently ignoring them.
This is fixed by PR #30 ("Return errors from deleteSnapshotFromLocalDB instead of swallowing them"), which is already labeled merge-ready and assigned to sneak for merge.