Skip to content

Commit

Permalink
update: return bulk result when error
Browse files Browse the repository at this point in the history
  • Loading branch information
eaglerayp authored and rayshih committed Jun 19, 2019
1 parent eeefdec commit 11d9e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bulk.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func (b *Bulk) Run() (*BulkResult, error) {
}
if failed {
sort.Sort(bulkErrorCases(berr.ecases))
return nil, &berr
return &result, &berr
}
return &result, nil
}
Expand Down

0 comments on commit 11d9e3e

Please sign in to comment.