gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-docs] branch master updated: use hint, not error


From: gnunet
Subject: [taler-docs] branch master updated: use hint, not error
Date: Tue, 04 Feb 2020 20:59:28 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository docs.

The following commit(s) were added to refs/heads/master by this push:
     new 12a5498  use hint, not error
12a5498 is described below

commit 12a5498a6e749e24f155a3dcda22ec0855eeb193
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Feb 4 20:59:17 2020 +0100

    use hint, not error
---
 core/api-common.rst   | 4 +---
 core/api-exchange.rst | 8 ++++----
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/core/api-common.rst b/core/api-common.rst
index 2ea5459..689e806 100644
--- a/core/api-common.rst
+++ b/core/api-common.rst
@@ -73,9 +73,7 @@ handle the error as if an internal error (500) had been 
returned.
 
       // Human-readable description of the error, i.e. "missing parameter", 
"commitment violation", ...
       // The other arguments are specific to the error value reported here.
-      error: string;
-
-      // Hint about error nature
+      // Should give a human-readable hint about the error's nature. Optional.
       hint?: string;
 
       // Name of the parameter that was bogus (if applicable)
diff --git a/core/api-exchange.rst b/core/api-exchange.rst
index 4a32896..ea1dd2d 100644
--- a/core/api-exchange.rst
+++ b/core/api-exchange.rst
@@ -535,7 +535,7 @@ exchange.
 
     interface WithdrawError {
       // Constant "Insufficient funds"
-      error: string;
+      hint: string;
 
       // Amount left in the reserve
       balance: Amount;
@@ -665,7 +665,7 @@ denomination.
 
     interface DepositDoubleSpendError {
       // The string constant "insufficient funds"
-      error: string;
+      hint: string;
 
       // Transaction history for the coin that is
       // being double-spended
@@ -848,7 +848,7 @@ the API during normal operation.
 
     interface MeltForbiddenResponse {
       // Always "insufficient funds"
-      error: string;
+      hint: string;
 
       // public key of a melted coin that had insufficient funds
       coin_pub: EddsaPublicKey;
@@ -938,7 +938,7 @@ the API during normal operation.
 
     interface RevealConflictResponse {
       // Constant "commitment violation"
-      error: string;
+      hint: string;
 
       // Detailed error code
       code: Integer;

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]