@sentio/cli 3.9.0-rc.2 → 3.9.0-rc.3
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/index.js +4 -2
- package/package.json +1 -1
- package/src/commands/upload.ts +2 -2
- package/src/network.ts +3 -1
package/lib/index.js
CHANGED
|
@@ -164210,7 +164210,9 @@ async function resolveNetworkAddresses(config) {
|
|
|
164210
164210
|
const id2 = ethers_exports.id(name);
|
|
164211
164211
|
return await addressBook["getAddress(bytes32)"](id2);
|
|
164212
164212
|
} catch (e3) {
|
|
164213
|
-
throw new Error(
|
|
164213
|
+
throw new Error(
|
|
164214
|
+
`Failed to resolve "${name}" from AddressBook (${addressBookAddr}): ${e3 instanceof Error ? e3.message : String(e3)}`
|
|
164215
|
+
);
|
|
164214
164216
|
}
|
|
164215
164217
|
}
|
|
164216
164218
|
};
|
|
@@ -165294,7 +165296,7 @@ async function uploadFile(config, auth, options) {
|
|
|
165294
165296
|
try {
|
|
165295
165297
|
await upload2();
|
|
165296
165298
|
} catch (e3) {
|
|
165297
|
-
if (e3
|
|
165299
|
+
if (e3?.constructor.name === "FetchError" && e3.type === "system" && e3.code === "EPIPE") {
|
|
165298
165300
|
error = e3;
|
|
165299
165301
|
await new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
165300
165302
|
await tryUploading();
|
package/package.json
CHANGED
package/src/commands/upload.ts
CHANGED
|
@@ -737,8 +737,8 @@ export async function uploadFile(
|
|
|
737
737
|
}
|
|
738
738
|
try {
|
|
739
739
|
await upload()
|
|
740
|
-
} catch (e) {
|
|
741
|
-
if (e
|
|
740
|
+
} catch (e: any) {
|
|
741
|
+
if (e?.constructor.name === 'FetchError' && e.type === 'system' && e.code === 'EPIPE') {
|
|
742
742
|
error = e
|
|
743
743
|
await new Promise((resolve) => setTimeout(resolve, 1000))
|
|
744
744
|
await tryUploading()
|
package/src/network.ts
CHANGED
|
@@ -158,7 +158,9 @@ export async function resolveNetworkAddresses(config: SentioNetworkConfig): Prom
|
|
|
158
158
|
const id = ethers.id(name)
|
|
159
159
|
return await addressBook['getAddress(bytes32)'](id)
|
|
160
160
|
} catch (e) {
|
|
161
|
-
throw new Error(
|
|
161
|
+
throw new Error(
|
|
162
|
+
`Failed to resolve "${name}" from AddressBook (${addressBookAddr}): ${e instanceof Error ? e.message : String(e)}`
|
|
163
|
+
)
|
|
162
164
|
}
|
|
163
165
|
}
|
|
164
166
|
}
|