@@ -155,22 +155,8 @@ Please double check whether you have multiple versions of the same plugin instal
155
155
websiteTitle : "Hardhat project already created" ,
156
156
websiteDescription : `Cannot create a new Hardhat project, the current folder is already associated with a project.` ,
157
157
} ,
158
- NOT_INSIDE_PROJECT_ON_WINDOWS : {
159
- number : 11 ,
160
- messageTemplate : `You are not inside a project and Hardhat failed to initialize a new one.
161
-
162
- If you were trying to create a new project, please try again using Windows Subsystem for Linux (WSL) or PowerShell.
163
- ` ,
164
- websiteTitle :
165
- "You are not inside a Hardhat project and Hardhat failed to initialize a new one" ,
166
- websiteDescription : `You are trying to run Hardhat outside of a Hardhat project, and we couldn't initialize one.
167
-
168
- If you were trying to create a new project, please try again using Windows Subsystem for Linux (WSL) or PowerShell.
169
-
170
- You can learn how to use Hardhat by reading the [Getting Started guide](/hardhat-runner/docs/getting-started).` ,
171
- } ,
172
158
NOT_IN_INTERACTIVE_SHELL : {
173
- number : 12 ,
159
+ number : 11 ,
174
160
messageTemplate :
175
161
"You are trying to initialize a project but you are not in an interactive shell." ,
176
162
websiteTitle : "Not inside an interactive shell" ,
@@ -179,7 +165,7 @@ You can learn how to use Hardhat by reading the [Getting Started guide](/hardhat
179
165
Please re-run the command inside an interactive shell.` ,
180
166
} ,
181
167
UNSUPPORTED_OPERATION : {
182
- number : 13 ,
168
+ number : 12 ,
183
169
messageTemplate : "{operation} is not supported in Hardhat." ,
184
170
websiteTitle : "Unsupported operation" ,
185
171
websiteDescription : `You are trying to perform an unsupported operation.
@@ -189,7 +175,7 @@ Unless you are creating a task or plugin, this is probably a bug.
189
175
Please [report it](https://github.com/nomiclabs/hardhat/issues/new) to help us improve Hardhat.` ,
190
176
} ,
191
177
ONLY_ESM_SUPPORTED : {
192
- number : 14 ,
178
+ number : 13 ,
193
179
messageTemplate : `Hardhat only supports ESM projects. Please be sure to specify "'type': 'module'" in your package.json` ,
194
180
websiteTitle : "Only ESM projects are supported" ,
195
181
websiteDescription : `You are trying to initialize a new Hardhat project, but your package.json does not have the property "type" set to "module".
@@ -199,20 +185,32 @@ Currently, Hardhat only supports ESM projects.
199
185
Please add the property "type" with the value "module" in your package.json to ensure that your project is recognized as an ESM project.` ,
200
186
} ,
201
187
GLOBAL_OPTION_ALREADY_DEFINED : {
202
- number : 15 ,
188
+ number : 14 ,
203
189
messageTemplate :
204
190
"Plugin {plugin} is trying to define the global option {globalOption} but it is already defined by plugin {definedByPlugin}" ,
205
191
websiteTitle : "Global option already defined" ,
206
192
websiteDescription :
207
193
"The global option is already defined by another plugin. Please ensure that global options are uniquely named to avoid conflicts." ,
208
194
} ,
209
195
INVALID_CONFIG : {
210
- number : 16 ,
196
+ number : 15 ,
211
197
messageTemplate : `Invalid config:
212
198
{errors}` ,
213
199
websiteTitle : "Invalid config" ,
214
200
websiteDescription : `The configuration you provided is invalid. Please check the documentation to learn how to configure Hardhat correctly.` ,
215
201
} ,
202
+ TEMPLATE_NOT_FOUND : {
203
+ number : 16 ,
204
+ messageTemplate : `Template {template} not found` ,
205
+ websiteTitle : "Template not found" ,
206
+ websiteDescription : `The template you provided is not found. Please check the documentation to learn which templates are available.` ,
207
+ } ,
208
+ WORKSPACE_NOT_FOUND : {
209
+ number : 17 ,
210
+ messageTemplate : `Workspace {workspace} not found` ,
211
+ websiteTitle : "Workspace not found" ,
212
+ websiteDescription : `The workspace you provided does not exist. Please ensure that the workspace exists and try again.` ,
213
+ } ,
216
214
} ,
217
215
INTERNAL : {
218
216
ASSERTION_ERROR : {
0 commit comments