Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
lblackstone committed Mar 15, 2021
1 parent d1daff0 commit d893394
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdk/go/common/workspace/project.go
Expand Up @@ -16,6 +16,7 @@ package workspace

import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"path/filepath"
Expand Down Expand Up @@ -304,7 +305,8 @@ func LoadProject(path string) (*Project, error) {

err = proj.Validate()
if err != nil {
return nil, errors.Wrapf(err, "file bytes: %s", string(b))
debug := fmt.Sprintf("file bytes:\n%s\nProject:\n%#v\n", string(b), proj)
return nil, errors.Wrap(err, debug)
}

return &proj, err
Expand Down

0 comments on commit d893394

Please sign in to comment.