Skip to content

Commit bba9370

Browse files
author
David Scott
committed
Return an explicit backend_error exception if we don't recognise the method
Signed-off-by: David Scott <dave.scott@eu.citrix.com>
1 parent f3e7cd9 commit bba9370

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ let process root_dir name x =
337337
>>= fun response ->
338338
Deferred.Result.return (R.success (Args.VDI.Detach.rpc_of_response ()))
339339

340-
| _ ->
341-
Deferred.Result.return (R.failure (R.String "hello")))
340+
| { R.name = name } ->
341+
Deferred.return (Error (backend_error "UNIMPLEMENTED" [ name ])))
342342
>>= function
343343
| Result.Error error ->
344344
Printf.fprintf stderr "returning %s\n%!" (Jsonrpc.string_of_response (R.failure error));

0 commit comments

Comments
 (0)