@bithomp/xrpl-api 3.7.17 → 3.7.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/connection.js +9 -0
- package/package.json +1 -1
package/lib/connection.js
CHANGED
|
@@ -373,6 +373,15 @@ class Connection extends events_1.EventEmitter {
|
|
|
373
373
|
});
|
|
374
374
|
this.client.on("error", (source, message, error) => {
|
|
375
375
|
try {
|
|
376
|
+
if (source === "noPermission") {
|
|
377
|
+
if (!error.status) {
|
|
378
|
+
error.status = "error";
|
|
379
|
+
}
|
|
380
|
+
if (this.client) {
|
|
381
|
+
this.client.requestManager.handleResponse(error);
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
376
385
|
this.logger?.error({
|
|
377
386
|
service: "Bithomp::XRPL::Connection",
|
|
378
387
|
emit: "error",
|