[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-util] branch master updated: readme
From: |
gnunet |
Subject: |
[taler-taler-util] branch master updated: readme |
Date: |
Wed, 15 Jan 2020 14:18:45 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository taler-util.
The following commit(s) were added to refs/heads/master by this push:
new dba960e readme
dba960e is described below
commit dba960e1c6185352e5ed38a37abe517750c0b070
Author: Florian Dold <address@hidden>
AuthorDate: Wed Jan 15 14:17:59 2020 +0100
readme
---
README | 9 +++++++++
taler/util/errorcodes.py | 4 ++--
taler/util/gen_errcodes_c.py | 7 ++++++-
3 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/README b/README
index 880b3fc..6cf55b4 100644
--- a/README
+++ b/README
@@ -19,6 +19,15 @@ or
make check
+Taler Error Codes
+-----------------
+
+Error codes are defined in taler/util/errorcodes.py.
+
+To generate the C header, run
+
+ python3 taler/util/gen_errcodes_c.py
+
Installation
------------
diff --git a/taler/util/errorcodes.py b/taler/util/errorcodes.py
index b5d7e9b..53acb6d 100644
--- a/taler/util/errorcodes.py
+++ b/taler/util/errorcodes.py
@@ -267,7 +267,7 @@ ec._add_ec(
)
ec._add_ec(
- "COIN_HISTORY_STORE_ERROR",
+ "DB_COIN_HISTORY_STORE_ERROR",
1014,
"""
We failed to update the database of known coins.
@@ -297,7 +297,7 @@ ec._add_ec(
)
ec._add_ec(
- "AMOUNT_FEE_OVERFLOW",
+ "WITHDRAW_AMOUNT_FEE_OVERFLOW",
1102,
"""
The amount to withdraw together with the fee exceeds the
diff --git a/taler/util/gen_errcodes_c.py b/taler/util/gen_errcodes_c.py
index a525f0d..62bedb2 100644
--- a/taler/util/gen_errcodes_c.py
+++ b/taler/util/gen_errcodes_c.py
@@ -44,11 +44,16 @@ pre = """\
* @file taler_error_codes.h
* @brief error codes returned by GNU Taler
*
- * This file should define constants for error codes returned
+ * This file defines constants for error codes returned
* in Taler APIs. We use codes above 1000 to avoid any
* confusing with HTTP status codes. All constants have the
* shared prefix "TALER_EC_" to indicate that they are error
* codes.
+ *
+ * THIS FILE IS AUTO-GENERATED, DO NOT MODIFY!
+ * If you want to add an error code, please add it in the
+ * taler-util.git repository. Instructions
+ * for this are in the README in taler-util.git.
*/
#ifndef TALER_ERROR_CODES_H
#define TALER_ERROR_CODES_H
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-taler-util] branch master updated: readme,
gnunet <=