From 6ac7798ea198c7a9c6ad19e2567d7f7fe100b8a9 Mon Sep 17 00:00:00 2001 From: Ian Wahbe Date: Wed, 25 Aug 2021 11:55:28 -0700 Subject: [PATCH] Check for no snapshot and no error --- pkg/cmd/pulumi/about.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/cmd/pulumi/about.go b/pkg/cmd/pulumi/about.go index 4a6a7ba5c..495eba42f 100644 --- a/pkg/cmd/pulumi/about.go +++ b/pkg/cmd/pulumi/about.go @@ -332,6 +332,8 @@ func getCurrentStackAbout(b backend.Backend) (currentStackAbout, error) { snapshot, err = stack.Snapshot(context) if err != nil { return currentStackAbout{}, err + } else if snapshot == nil { + return currentStackAbout{}, errors.New("No current snapshot") } var resources []*resource.State = snapshot.Resources var pendingOps []resource.Operation = snapshot.PendingOperations