Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
mberbero committed Apr 19, 2023
1 parent f8a171b commit e17cb75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kervan.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ func (t *API) CheckLicence(payload *CheckLicencePayload) (*CheckLicenceResponse,
if err != nil {
return nil, fmt.Errorf("error while checking licence: %w", err)
}
if response.Token == "" {
return nil, fmt.Errorf("error while checking licence: token is empty")
}
return &response, nil
}

Expand Down

0 comments on commit e17cb75

Please sign in to comment.