Parse RPC error responses correctly.

This commit is contained in:
Fang 2018-04-09 16:57:53 +02:00
parent dba3abac6b
commit 71eee8cb00

View File

@ -22,7 +22,8 @@
=/ res=(unit [@t json])
((ot id+so result+some ~) a)
?^ res `[%result u.res]
~| a
:+ ~ %error %- need
((ot id+so code+so message+so ~) a)
((ot id+so error+(ot code+no message+so ~) ~) a)
--
--