mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-13 08:38:43 +03:00
Parse RPC error responses correctly.
This commit is contained in:
parent
dba3abac6b
commit
71eee8cb00
@ -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)
|
||||
--
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user