Skip to content

Commit 5b2fae2

Browse files
committed
refactor: add error wrapping
Signed-off-by: Oleksandr Redko <[email protected]>
1 parent d56c844 commit 5b2fae2

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)