Merge pull request #666 from pulumi/add-logging-to-stack-reading

Log the error when getting a stack fails
This commit is contained in:
Joe Duffy 2017-12-18 09:51:29 -08:00 committed by GitHub
commit 662ebcbd94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,7 @@ import (
"os"
"path/filepath"
"github.com/golang/glog"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/pkg/backend"
@ -251,6 +252,7 @@ func getLocalStacks() ([]tokens.QName, error) {
name := tokens.QName(stackfn[:len(stackfn)-len(ext)])
_, _, _, err := getStack(name)
if err != nil {
glog.V(5).Infof("error reading stack: %v (%v) skipping", name, err)
continue // failure reading the stack information.
}