revise CONFIG_FILE_UNEXPECTED_ERROR error

This commit is contained in:
Brian Mann
2022-02-22 09:59:15 -05:00
parent 7314e5a0aa
commit a679a7c7e1
2 changed files with 4 additions and 4 deletions

View File

@@ -34,9 +34,9 @@
</style>
</head>
<body><pre><span style="color:#e05561">We stopped running your tests because your config file crashed.<span style="color:#e6e6e6">
<body><pre><span style="color:#e05561">Your <span style="color:#e5e510">configFile<span style="color:#e05561"> threw an 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">Your <span style="color:#e5e510">configFile<span style="color:#e05561"> threw an error from: <span style="color:#4ec4ff">/path/to/configFile<span style="color:#e05561"><span style="color:#e6e6e6">
<span style="color:#e05561">We stopped running your tests because your config file crashed.<span style="color:#e6e6e6">
<span style="color:#c062de"><span style="color:#e6e6e6">
<span style="color:#c062de">Error: fail whale<span style="color:#e6e6e6">
<span style="color:#c062de"> at makeErr (cypress/packages/errors/test/unit/visualSnapshotErrors_spec.ts)<span style="color:#e6e6e6">

View File

@@ -637,10 +637,10 @@ export const AllCypressErrors = {
},
CONFIG_FILE_UNEXPECTED_ERROR: (configFilePath: string, err: ErrorLike) => {
return errTemplate`
We stopped running your tests because your config file crashed.
Your ${fmt.highlight(`configFile`)} threw an error from: ${fmt.path(configFilePath)}
We stopped running your tests because your config file crashed.
${fmt.stackTrace(err)}
`
},