Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type Client struct {

func NewClient(accessToken string, version string) *Client {
if accessToken == "" {
panic("Access token cannot be blank")
return nil, errors.New("No api access token available. Please login with 'flyctl auth signup' or 'flyctl auth login'")
}

httpClient, _ := newHTTPClient()
Expand Down
2 changes: 1 addition & 1 deletion cmd/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func requireAppName(cmd *Command) Initializer {
},
PreRun: func(ctx *cmdctx.CmdContext) error {
if ctx.AppName == "" {
return fmt.Errorf("No app specified")
return fmt.Errorf("No app specified. Maybe create one with 'flyctl apps create [APPNAME]'")
}

if ctx.AppConfig == nil {
Expand Down