-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Repl 2020-11-02, Repl 2020-11-16
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Create a struct in basic_types.idl:
enums:
OkZeroEnum:
description: "An error reply's 'ok' value"
type: int
values:
kZero: 0
structs:
ErrorReply:
description: "Error reply structure for all commands"
strict: false
fields:
ok: OkZeroEnum
code: int
codeName: string
errmsg: string
errorLabels:
type: array<string>
optional: true
Today we generate error replies with two handwritten functions, appendCommandStatusNoThrow and augmentReplyWithStatus. Update these functions to use ErrorReply.