Skip to content

Commit

Permalink
Merge pull request #675 from pachyderm/derekchiang-patch-1
Browse files Browse the repository at this point in the history
Fix a bug where error is not returned when primary key is not found
  • Loading branch information
derekchiang committed Jul 22, 2016
2 parents 6efecc8 + b5e7def commit 150e0a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/pps/persist/server/rethink_api_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ func (a *rethinkAPIServer) getMessageByPrimaryKey(table Table, key interface{},
if cursor.IsNil() {
return fmt.Errorf("%v %v not found", table, key)
}
if cursor.Next(message) {
if !cursor.Next(message) {
return cursor.Err()
}
return nil
Expand Down

0 comments on commit 150e0a7

Please sign in to comment.