gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: -error codes


From: gnunet
Subject: [taler-wallet-core] branch master updated: -error codes
Date: Tue, 02 Apr 2024 13:03:04 +0200

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

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new b4185a6ef -error codes
b4185a6ef is described below

commit b4185a6ef452fba47e481264af06e67524391584
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Apr 2 13:03:01 2024 +0200

    -error codes
---
 packages/taler-util/src/taleruri.ts | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/packages/taler-util/src/taleruri.ts 
b/packages/taler-util/src/taleruri.ts
index 0022a72cc..db8a58185 100644
--- a/packages/taler-util/src/taleruri.ts
+++ b/packages/taler-util/src/taleruri.ts
@@ -139,8 +139,8 @@ export function parseWithdrawUriWithError(s: string) {
   const parts = pi.body.rest.split("/");
 
   if (parts.length < 2) {
-    return opKnownTalerFailure(TalerErrorCode.TALER_URI_NO_ENOUGH_COMPONENT, {
-      code: TalerErrorCode.TALER_URI_NO_ENOUGH_COMPONENT,
+    return opKnownTalerFailure(TalerErrorCode.WALLET_TALER_URI_MALFORMED, {
+      code: TalerErrorCode.WALLET_TALER_URI_MALFORMED,
     });
   }
 
@@ -236,8 +236,8 @@ function parseProtoInfoWithError(s: string, action: string) 
{
     !s.toLowerCase().startsWith("taler://") &&
     !s.toLowerCase().startsWith("taler+http://";)
   ) {
-    return opKnownTalerFailure(TalerErrorCode.TALER_URI_PREFIX, {
-      code: TalerErrorCode.TALER_URI_PREFIX,
+    return opKnownTalerFailure(TalerErrorCode.WALLET_TALER_URI_MALFORMED, {
+      code: TalerErrorCode.WALLET_TALER_URI_MALFORMED,
     });
   }
   const pfxPlain = `taler://${action}/`;
@@ -253,8 +253,8 @@ function parseProtoInfoWithError(s: string, action: string) 
{
       rest: s.substring(pfxHttp.length),
     });
   } else {
-    return opKnownTalerFailure(TalerErrorCode.TALER_URI_UNKOWN_ACTION, {
-      code: TalerErrorCode.TALER_URI_UNKOWN_ACTION,
+    return opKnownTalerFailure(TalerErrorCode.WALLET_TALER_URI_MALFORMED, {
+      code: TalerErrorCode.WALLET_TALER_URI_MALFORMED,
     });
   }
 }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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