From 64a9999ac90fac9fc503206aca56cf8f12da565a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Tue, 15 Jan 2019 21:36:46 +0100 Subject: [PATCH] another {.gcsafe.} pragma, just for Windows --- json_rpc/router.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json_rpc/router.nim b/json_rpc/router.nim index 5d325c3..90f60ca 100644 --- a/json_rpc/router.nim +++ b/json_rpc/router.nim @@ -98,7 +98,7 @@ proc wrapReply*(id: JsonNode, value: JsonNode, error: JsonNode): JsonNode = return %{jsonRpcField: %"2.0", idField: id, resultField: value, errorField: error} proc wrapError*(code: int, msg: string, id: JsonNode, - data: JsonNode = newJNull()): JsonNode = + data: JsonNode = newJNull()): JsonNode {.gcsafe.} = # Create standardised error json result = %{codeField: %(code), idField: id, messageField: %msg, dataField: data} debug "Error generated", error = result, id = id