Skip to content

Commit 9a27cb6

Browse files
committed
tweak error description
1 parent 1a0b064 commit 9a27cb6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.changeset/sour-crews-tan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
"hardhat": patch
44
---
55

6-
Improved the error message for syntax errors found in the config file (https://github.com/NomicFoundation/hardhat/issues/7056)
6+
Improve the error message for syntax errors found in the Hardhat config file ([#7056](https://github.com/NomicFoundation/hardhat/issues/7056))

v-next/hardhat-errors/src/descriptors.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,10 +458,12 @@ A fully qualified name should look like file.sol:Contract`,
458458
},
459459
INVALID_CONFIG_FILE: {
460460
number: 21,
461-
messageTemplate: `Invalid config file at {configPath}:
461+
messageTemplate: `Invalid Hardhat config file at {configPath}:
462462
{errors}`,
463-
websiteTitle: "Invalid config file",
464-
websiteDescription: "The config file is invalid.",
463+
websiteTitle: "Invalid Hardhat config file",
464+
websiteDescription: `The config file has JS/TS errors.
465+
466+
Please resolve the errors before rerunning the command.`,
465467
},
466468
},
467469
INTERNAL: {

0 commit comments

Comments
 (0)