[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 01/02: taler-util: reject promise on node http error
From: |
gnunet |
Subject: |
[taler-wallet-core] 01/02: taler-util: reject promise on node http error |
Date: |
Sun, 19 Feb 2023 23:14:05 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit 925ef1f410e01323ee24ab9019afcc1713bf07c2
Author: Florian Dold <florian@dold.me>
AuthorDate: Sun Feb 19 14:03:35 2023 +0100
taler-util: reject promise on node http error
---
packages/taler-util/src/http-impl.node.ts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/packages/taler-util/src/http-impl.node.ts
b/packages/taler-util/src/http-impl.node.ts
index 8f215e596..798b81e2d 100644
--- a/packages/taler-util/src/http-impl.node.ts
+++ b/packages/taler-util/src/http-impl.node.ts
@@ -170,6 +170,10 @@ export class HttpLibImpl implements HttpRequestLibrary {
throw new Error(`unsupported protocol ${options.protocol}`);
}
+ req.on("error", (e: Error) => {
+ reject(e);
+ });
+
if (reqBody) {
req.write(new Uint8Array(reqBody));
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.