Skip to content

Commit fa96be3

Browse files
committed
Set code for invalid response error
1 parent 07de368 commit fa96be3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

context.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ func (ctx *Context) send(data []byte, err error) {
163163
}
164164

165165
if err != nil {
166+
ctx.code = "INVALID_RESPONSE"
166167
ctx.err = err
167168
ctx.unhandledException()
168169
return

0 commit comments

Comments
 (0)