mirror of https://github.com/zcash/zips.git
Miners can use error code for deriving human-readable messages
This commit is contained in:
parent
26d4d827d8
commit
f4fe8fea10
|
@ -99,7 +99,7 @@ as an array::
|
|||
|
||||
``ERROR_MESSAGE`` (str)
|
||||
A human-readable error message. The message SHOULD be limited to a concise
|
||||
single sentence. Miners SHOULD display the message to the user.
|
||||
single sentence.
|
||||
|
||||
``TRACEBACK``
|
||||
Additional information for debugging errors. Format is server-specific.
|
||||
|
@ -109,6 +109,11 @@ as an array::
|
|||
|
||||
Servers MUST set this to ``null`` if they have no additional information.
|
||||
|
||||
Miners SHOULD display a human-readable message to the user. This message can be
|
||||
derived from either ``ERROR_CODE`` or ``ERROR_MESSAGE``, or both. An example of
|
||||
using ``ERROR_CODE`` over ``ERROR_MESSAGE`` might be that the miner UI offers
|
||||
localisation.
|
||||
|
||||
.. [JSON-RPC-2.0] The JSON-RPC Working Group. *JSON-RPC 2.0 Specification*.
|
||||
Last updated: 2013-01-04.
|
||||
URL: http://www.jsonrpc.org/specification (visited on 2016-09-25).
|
||||
|
|
Loading…
Reference in New Issue