We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3023bd commit 80a5bc9Copy full SHA for 80a5bc9
net.coffee
@@ -1109,7 +1109,10 @@ class TcpConnection extends Connection
1109
j = i+1
1110
status_str = status_buf.toString()
1111
# Get the reply from the server, and parse it as JSON
1112
- server_reply = JSON.parse(status_str)
+ try
1113
+ server_reply = JSON.parse(status_str)
1114
+ catch json_error
1115
+ throw new err.ReqlDriverError(status_str)
1116
1117
if state is 1
1118
if not server_reply.success
0 commit comments