Skip to content

Commit

Permalink
Merge pull request #6 from leclercb/develop
Browse files Browse the repository at this point in the history
Merge develop into master
  • Loading branch information
leclercb authored Nov 20, 2019
2 parents 3d53782 + 94648ee commit 9e44e30
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,20 @@ function connectWebSocket(url, options, redisClient) {
ws.send(JSON.stringify({
messageId: message.messageId,
status: 400,
data: e.toString()
data: {
code: 'redis_execution',
message: e.toString()
}
}));
}
} else {
ws.send(JSON.stringify({
messageId: message.messageId,
status: 405,
data: null
data: {
code: 'redis_not_connected',
message: 'Redis instance is not connected'
}
}));
}
}
Expand Down

0 comments on commit 9e44e30

Please sign in to comment.