Skip to content

Commit

Permalink
remove Error: ^C message on survey interrupt
Browse files Browse the repository at this point in the history
When I start survey and press ctrl-C I got Error: ^C.
Removing that output.
  • Loading branch information
ianic committed Nov 25, 2021
1 parent 06a19e3 commit 25bb743
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ Please check the following rules when naming projects, stages and functions:
table.Render()
return
}
//ok, _ := cmd.InheritedFlags().GetBool("no-color")

ui.Error(err)
}
Expand Down
3 changes: 3 additions & 0 deletions cli/controller/signup.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ var signupEndpoint = apiEndpoint{url: "https://ytg5gfkg5k.execute-api.eu-central
func Register() error {
rr, err := survey()
if err != nil {
if err == promptui.ErrInterrupt {
return nil
}
return log.Wrap(err)
}
if err := signupEndpoint.Call("register", rr, nil); err != nil {
Expand Down

0 comments on commit 25bb743

Please sign in to comment.