Skip to content

Commit 8385fd3

Browse files
committed
fix: RpcError missing param-less constructor
1 parent aad3d04 commit 8385fd3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/error.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ struct RpcError {
1919
int code;
2020
MsgPack::str_t traceback;
2121

22+
RpcError() {
23+
code = NO_ERR;
24+
traceback = "";
25+
}
26+
2227
RpcError(int c, const MsgPack::str_t& tb)
2328
: code(c), traceback(tb) {}
2429

0 commit comments

Comments
 (0)