Add LL generic error PB response decoding #7
1 changed files with 7 additions and 0 deletions
|
@ -190,10 +190,17 @@ from_pb_request(_Else) ->
|
||||||
|
|
||||||
from_pb_response(#mpb_ll_response{
|
from_pb_response(#mpb_ll_response{
|
||||||
req_id=ReqID,
|
req_id=ReqID,
|
||||||
|
% There is no separate LL error response record
|
||||||
|
generic=#mpb_errorresp{code=Code, msg=Msg}}) ->
|
||||||
|
{ReqID, {error, {Code, Msg}}};
|
||||||
|
from_pb_response(#mpb_ll_response{
|
||||||
|
req_id=ReqID,
|
||||||
|
% There is no separate LL echo response record
|
||||||
echo=#mpb_echoresp{message=Msg}}) ->
|
echo=#mpb_echoresp{message=Msg}}) ->
|
||||||
{ReqID, Msg};
|
{ReqID, Msg};
|
||||||
from_pb_response(#mpb_ll_response{
|
from_pb_response(#mpb_ll_response{
|
||||||
req_id=ReqID,
|
req_id=ReqID,
|
||||||
|
% There is no separate LL auth response record
|
||||||
auth=#mpb_authresp{code=Code}}) ->
|
auth=#mpb_authresp{code=Code}}) ->
|
||||||
{ReqID, Code};
|
{ReqID, Code};
|
||||||
from_pb_response(#mpb_ll_response{
|
from_pb_response(#mpb_ll_response{
|
||||||
|
|
Loading…
Reference in a new issue