Skip to content

Commit 8ac36e8

Browse files
committed
Merge pull request #4693 from ngauthier/fix-nil-client
fix(client): catch and propagate client errors
2 parents 5fc33de + f44c2a6 commit 8ac36e8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

client/cmd/apps.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ import (
2020
// AppCreate creates an app.
2121
func AppCreate(id string, buildpack string, remote string, noRemote bool) error {
2222
c, err := client.New()
23+
if err != nil {
24+
return err
25+
}
2326

2427
fmt.Print("Creating Application... ")
2528
quit := progress()

0 commit comments

Comments
 (0)