Skip to content

Commit 32777e2

Browse files
committed
feat: RpcCall unexecuted objs initialized with "This call is not executed yet" GENERIC_ERR
1 parent 190f7b7 commit 32777e2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/bridge.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ void updateEntryPoint(void *, void *, void *);
3232

3333
template<typename... Args>
3434
class RpcCall {
35-
3635
public:
37-
RpcError error;
36+
RpcError error{GENERIC_ERR, "This call is not executed yet"};
3837

3938
RpcCall(const MsgPack::str_t& m, RPCClient* c, struct k_mutex* rm, struct k_mutex* wm, Args&&... args): method(m), client(c), read_mutex(rm), write_mutex(wm), callback_params(std::forward_as_tuple(std::forward<Args>(args)...)) {}
4039

0 commit comments

Comments
 (0)