Skip to content

Commit 2cdb318

Browse files
authored
Merge pull request #339 from ests/fix-panic-for-status-cmd
Don't run status command if API key is missing.
2 parents 3be27a1 + 9c9911f commit 2cdb318

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cmd/status.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ func Status(ctx *cli.Context) error {
2424
os.Exit(1)
2525
}
2626

27+
if !c.IsAuthenticated() {
28+
log.Fatal(msgPleaseAuthenticate)
29+
}
30+
2731
client := api.NewClient(c)
2832
trackID := args[0]
2933
status, err := client.Status(trackID)

0 commit comments

Comments
 (0)