Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

Commit

Permalink
fix SphinxClient.SEARCHD_ERROR callback bug
Browse files Browse the repository at this point in the history
  • Loading branch information
shlee322 committed Dec 26, 2013
1 parent e997f3f commit d30ba48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sphinxapi.js
Expand Up @@ -489,7 +489,7 @@ SphinxClient.prototype.Query = function (query, index, comment, fn) {
self._error = results[0].error
self._warning = results[0].warning
if (results[0].status == SphinxClient.SEARCHD_ERROR) {
fn(err, null)
fn(results[0].error, null)
return
}
fn(err, results[0])
Expand Down

0 comments on commit d30ba48

Please sign in to comment.