Skip to content

Commit 9e4b35c

Browse files
committed
Switch to warning instead of error
1 parent c3f211c commit 9e4b35c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/boxcli/init.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"github.com/pkg/errors"
1111
"github.com/spf13/cobra"
1212

13-
"go.jetpack.io/devbox/internal/boxcli/usererr"
1413
"go.jetpack.io/devbox/internal/devbox"
14+
"go.jetpack.io/devbox/internal/ux"
1515
"go.jetpack.io/devbox/pkg/autodetect"
1616
)
1717

@@ -36,7 +36,8 @@ func initCmd() *cobra.Command {
3636
if path == "" || path == "." {
3737
path, _ = os.Getwd()
3838
}
39-
return usererr.New("devbox.json already exists in %q.", path)
39+
ux.Fwarningf(cmd.ErrOrStderr(), "devbox.json already exists in %q.", path)
40+
err = nil
4041
}
4142
return err
4243
},

0 commit comments

Comments
 (0)