Throw proper error when nightwatch config file not found.#41
Throw proper error when nightwatch config file not found.#41
Conversation
| const nwConfig = require(/* webpackIgnore: true */ res[0].path); | ||
| const workspaceState = this.context.workspaceState; | ||
| workspaceState.update('nwConfig', nwConfig); | ||
| } catch (err) { |
There was a problem hiding this comment.
Instead we can show the popup window to show the error with the path
|
Parking it for the moment as the implementation seems to be incomplete. If a config file exists then Note that if no config file is present, then |
In Nightwatch VSCode extension, if the
nightwatch.conf.jsfile is not found, an error is thrown which gives out no information on what went wrong. This PR aims to throw a proper error instead.PR not tested yet.