Navigation Menu

Skip to content

Commit

Permalink
groonga load: log errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 25, 2014
1 parent 71095f8 commit ec63179
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/adapter/api/groonga.js
Expand Up @@ -36,8 +36,14 @@ module.exports = {
};
connection.emit('add', message, function(error, message) {
nResponses++;
if (!error && message) {
nAdded++;
if (error) {
// TODO: Output to error log file.
console.error("/d/load: failed to add a record", message);
} else {
var succeeded = message;
if (succeeded) {
nAdded++;
}
}
if (isEnd && nRecords == nResponses) {
var statusCode = statusCodes.SUCCESS;
Expand Down

0 comments on commit ec63179

Please sign in to comment.