another {.gcsafe.} pragma, just for Windows

This commit is contained in:
Ștefan Talpalaru 2019-01-15 21:36:46 +01:00 committed by zah
parent c29e4de623
commit 64a9999ac9
1 changed files with 1 additions and 1 deletions

View File

@ -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