summaryrefslogtreecommitdiff
path: root/src/rose.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rose.erl')
-rw-r--r--src/rose.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rose.erl b/src/rose.erl
index c720dd8..47a48f2 100644
--- a/src/rose.erl
+++ b/src/rose.erl
@@ -31,9 +31,8 @@ dispatch({invoke, #'Invoke'{invokeId = Id, opcode = Op, argument = Data}}) ->
{local, 74} ->
ok;
{local, 211} ->
- {ok, Status} = csta:decodeStatus(Data),
- io:format("Status: ~p~n", [Status]),
- return(Id, Op, csta:statusOk());
+ io:format("Status: ~p~n", [status:value(Data)]),
+ return(Id, Op, status:encode());
_ ->
error
end;