Skip to content

Commit 7b46a12

Browse files
author
Jannis Pohlmann
committed
connections: Convert error to a string before sending a GQL_ERROR
1 parent 7d24db2 commit 7b46a12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connections.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func (conn *connection) SendData(opID string, data *DataMessagePayload) {
172172

173173
func (conn *connection) SendError(err error) {
174174
msg := operationMessageForType(gqlError)
175-
msg.Payload = err
175+
msg.Payload = err.Error()
176176
conn.outgoing <- msg
177177
}
178178

0 commit comments

Comments
 (0)