Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 12, 2024. It is now read-only.
/etherscan-srcPublic archive

Commit18e6784

Browse files
committed
fix(cli): broken rpc urls
1 parent2eb895d commit18e6784

File tree

5 files changed

+605
-206
lines changed

5 files changed

+605
-206
lines changed

‎src/cli.ts‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import dotenv from "dotenv";
66
importfsfrom"fs";
77
importpathfrom"path";
88

9+
import{FetchError}from"./errors";
910
import{fetchSourcesAt}from"./fetch";
1011

1112
dotenv.config();
@@ -113,13 +114,13 @@ const fetchSources = () => {
113114
)
114115
);
115116
}catch(error:any){
116-
console.log(
117-
colors.red(
118-
`Error while fetching sources for${colors.bold(address)}:${colors.bold(
119-
error.message
120-
)}`
121-
)
122-
);
117+
letbase=`Error fetching sources for${colors.bold(address)}`;
118+
if(errorinstanceofFetchError)
119+
base+=` from${colors.underline(
120+
colors.bold(error.hostname)
121+
)} for chain with id${colors.bold(error.chainId.toString())}`;
122+
123+
console.log(colors.red(`${base}:${colors.bold(error.message)}`));
123124
}
124125
})
125126
);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp