Fix bad debug log

This commit is contained in:
coffeepots 2018-06-19 18:20:46 +01:00
parent e42864ef7a
commit 23911ad80e

View File

@ -234,7 +234,7 @@ macro rpc*(server: RpcServer, path: string, body: untyped): untyped =
try:
`procBody`
except:
debug "Error occurred within RPC " & `path` & ": ", getCurrentExceptionMsg()
debug "Error occurred within RPC ", path = `path`, errorMessage = getCurrentExceptionMsg()
if parameters.hasReturnType:
let returnType = parameters[0]