Skip to content

Commit 0e64c4d

Browse files
authored
Merge pull request #3409 from alexandear-org/refactor/wrap-error
refactor: add error wrapping
2 parents d56c844 + 5b2fae2 commit 0e64c4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/instance/stop.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func waitForInstanceShutdown(ctx context.Context, inst *store.Instance) error {
8686
case <-ticker.C:
8787
updatedInst, err := store.Inspect(inst.Name)
8888
if err != nil {
89-
return errors.New("failed to inspect instance status: " + err.Error())
89+
return fmt.Errorf("failed to inspect instance status: %w", err)
9090
}
9191

9292
if updatedInst.Status == store.StatusStopped {

0 commit comments

Comments
 (0)