Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: return bulk result when error
Browse files Browse the repository at this point in the history
eaglerayp authored and rayshih committed Jun 19, 2019

Verified

This commit was signed with the committer’s verified signature.
sandhose Quentin Gliech
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
@@ -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
}

0 comments on commit 11d9e3e

Please sign in to comment.