Skip to content

Commit

Permalink
handle quitting prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Mar 16, 2024
1 parent a01788a commit afbaaec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
5 changes: 3 additions & 2 deletions cmd/sst/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/briandowns/spinner"
"github.com/fatih/color"
"github.com/manifoldco/promptui"
"github.com/sst/ion/internal/util"
"github.com/sst/ion/pkg/project"
)

Expand Down Expand Up @@ -72,7 +73,7 @@ func CmdInit(cli *Cli) error {

_, confirm, err := p.Run()
if err != nil {
return err
return util.NewReadableError(err, "")
}
if confirm == "No" {
return nil
Expand All @@ -92,7 +93,7 @@ func CmdInit(cli *Cli) error {
}
_, home, err = p.Run()
if err != nil {
return err
return util.NewReadableError(err, "")
}
}

Expand Down
12 changes: 0 additions & 12 deletions examples/test/sst.config.ts

This file was deleted.

0 comments on commit afbaaec

Please sign in to comment.