@gearbox-protocol/sdk 12.6.1 → 12.6.2
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.
|
@@ -148,12 +148,16 @@ class AccountOpener extends import_sdk.SDKConstruct {
|
|
|
148
148
|
success += result.account ? 1 : 0;
|
|
149
149
|
if (result.error) {
|
|
150
150
|
this.#logger?.error(
|
|
151
|
-
`failed to open account #${i + 1}/${targets.length}
|
|
151
|
+
new Error(`failed to open account #${i + 1}/${targets.length}`, {
|
|
152
|
+
cause: result.error
|
|
153
|
+
})
|
|
152
154
|
);
|
|
153
155
|
}
|
|
154
156
|
} catch (e) {
|
|
155
157
|
this.#logger?.error(
|
|
156
|
-
`failed to open account #${i + 1}/${targets.length}
|
|
158
|
+
new Error(`failed to open account #${i + 1}/${targets.length}`, {
|
|
159
|
+
cause: e
|
|
160
|
+
})
|
|
157
161
|
);
|
|
158
162
|
accounts.push({
|
|
159
163
|
input: target,
|
|
@@ -139,12 +139,16 @@ class AccountOpener extends SDKConstruct {
|
|
|
139
139
|
success += result.account ? 1 : 0;
|
|
140
140
|
if (result.error) {
|
|
141
141
|
this.#logger?.error(
|
|
142
|
-
`failed to open account #${i + 1}/${targets.length}
|
|
142
|
+
new Error(`failed to open account #${i + 1}/${targets.length}`, {
|
|
143
|
+
cause: result.error
|
|
144
|
+
})
|
|
143
145
|
);
|
|
144
146
|
}
|
|
145
147
|
} catch (e) {
|
|
146
148
|
this.#logger?.error(
|
|
147
|
-
`failed to open account #${i + 1}/${targets.length}
|
|
149
|
+
new Error(`failed to open account #${i + 1}/${targets.length}`, {
|
|
150
|
+
cause: e
|
|
151
|
+
})
|
|
148
152
|
);
|
|
149
153
|
accounts.push({
|
|
150
154
|
input: target,
|