revise PLUGINS_INVALID_EVENT_NAME_ERROR error

This commit is contained in:
Brian Mann
2022-02-22 09:59:37 -05:00
parent a679a7c7e1
commit 511bbf41aa
2 changed files with 2 additions and 2 deletions

View File

@@ -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">

View File

@@ -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.