Miners can use error code for deriving human-readable messages

This commit is contained in:
str4d 2016-09-26 11:23:17 +13:00 committed by Daira Hopwood
parent 26d4d827d8
commit f4fe8fea10
1 changed files with 6 additions and 1 deletions

View File

@ -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).