Skip to content
Merged
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
7 changes: 5 additions & 2 deletions pkg/client/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,11 @@ func (c *Client) UploadModel(repo *model.Repo, projectDir string) (*model.Model,
break
}
if err == io.ErrUnexpectedEOF {
console.Warn("Unexpected EOF")
break
return nil, fmt.Errorf("Unexpected EOF")
}
// TODO(andreas): how to catch this error without comparing strings?
if strings.Contains(err.Error(), "stream error") && strings.Contains(err.Error(), "INTERNAL_ERROR") {
return nil, fmt.Errorf("Lost contact with server. Please try again")
}
console.Warn(err.Error())
}
Expand Down