mirror of
https://github.com/cypress-io/cypress.git
synced 2026-03-13 12:59:07 -05:00
revise PLUGINS_INVALID_EVENT_NAME_ERROR error
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body><pre><span style="color:#e05561">Your <span style="color:#de73ff">configFile<span style="color:#e05561"> threw a validation error: <span style="color:#4ec4ff">/path/to/configFile<span style="color:#e05561"><span style="color:#e6e6e6">
|
||||
<body><pre><span style="color:#e05561">Your <span style="color:#de73ff">configFile<span style="color:#e05561"> threw a validation error from: <span style="color:#4ec4ff">/path/to/cypress.config.js<span style="color:#e05561"><span style="color:#e6e6e6">
|
||||
<span style="color:#e05561"><span style="color:#e6e6e6">
|
||||
<span style="color:#e05561">You must pass a valid event name when registering a plugin.<span style="color:#e6e6e6">
|
||||
<span style="color:#e05561"><span style="color:#e6e6e6">
|
||||
|
||||
@@ -647,7 +647,7 @@ export const AllCypressErrors = {
|
||||
// TODO: make this relative path, not absolute
|
||||
PLUGINS_INVALID_EVENT_NAME_ERROR: (pluginsFilePath: string, invalidEventName: string, validEventNames: string[], err: Error) => {
|
||||
return errTemplate`
|
||||
Your ${fmt.highlightSecondary(`configFile`)} threw a validation error: ${fmt.path(pluginsFilePath)}
|
||||
Your ${fmt.highlightSecondary(`configFile`)} threw a validation error from: ${fmt.path(pluginsFilePath)}
|
||||
|
||||
You must pass a valid event name when registering a plugin.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user