bugfix: get_dirents RPC has no error propagation

Merged Ramon Nou requested to merge cherry-pick-4ba3c5e7 into dev

Implement proper error propagation and handling on get_dirents RPC. Error happening on the deamon are now embedded on the returned response and the client throws an exception once he receives the response.

(cherry picked from commit 4ba3c5e7)

Merge request reports