Skip to content

Commit

Permalink
Addressed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vinu2003 committed Jul 25, 2018
1 parent dec3b0b commit 058fca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/bundle/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ func (c *Client) ExportBundle() (string, error) {
return "", errors.Trace(err)
}

if len(result.Result) == 0 {
return "", errors.Annotate(result.Error, "export failed")
if result.Error != nil {
return "", errors.Trace(result.Error)
}

return result.Result, nil
Expand Down

0 comments on commit 058fca7

Please sign in to comment.