Details
-
Task
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
Repl 2020-11-02, Repl 2020-11-16
Description
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.