Skip to content

Commit 35c1262

Browse files
committed
Bindings review fixes
1 parent c37b879 commit 35c1262

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/generate-bindings/generate-bindings.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ func (h *handler) ResolveInputs(args []string, v *viper.Viper) (Inputs, error) {
8383
projectRoot = currentDir
8484
}
8585

86+
if _, err := os.Stat(projectRoot); err != nil {
87+
return Inputs{}, fmt.Errorf("project root not found: %s", projectRoot)
88+
}
89+
8690
contractsPath := filepath.Join(projectRoot, "contracts")
8791
if _, err := os.Stat(contractsPath); err != nil {
8892
return Inputs{}, fmt.Errorf("contracts folder not found in project root: %s", contractsPath)

0 commit comments

Comments
 (0)