Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Commit

Permalink
Fix bug in log upload
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinkruse committed Nov 6, 2019
1 parent 553ebaf commit b2e577d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/api.go
Expand Up @@ -195,9 +195,10 @@ func UploadLog(_version string) error {
return err
}

if len(status.Status) != 10 {
if len(status.Status) < 5 {
return errors.New("There was an error uploading the logs - please try again")
}

helpers.PrintLine("Successfully uploaded your logs under the id "+fmt.Sprintf("%s", aurora.Bold("#"+status.Status)), helpers.INFO)
helpers.PrintLine("Please include this id when referring to your logs so that we can easily identify them.", helpers.INFO)
return nil
Expand Down

0 comments on commit b2e577d

Please sign in to comment.