Skip to content

Commit

Permalink
Init has better error message (#45)
Browse files Browse the repository at this point in the history
* Init has better error message

* Fix build
  • Loading branch information
JakeCooper authored Oct 23, 2020
1 parent 1b04806 commit 8b2be22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (h *Handler) Init(ctx context.Context, req *entity.CommandRequest) error {
isLoggedIn, _ := h.ctrl.IsLoggedIn(ctx)

if !isLoggedIn {
return errors.New("Account require to init project")
return errors.New(fmt.Sprintf("%s\nRun %s", ui.RedText("Account require to init project"), ui.Bold("railway login")))
}

selection, err := ui.PromptInit(isLoggedIn)
Expand Down

0 comments on commit 8b2be22

Please sign in to comment.