提交 288f8289 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

better error message for chromedriver #164

上级 adc15984
......@@ -143,7 +143,7 @@ export class BrowserDriver {
} catch (e) {
if (/could not be found/.test(e.message)) {
// The ChromeDriver could not be found on the current PATH
log.error('PuppetWebBrowserDriver', 'initChromeDriver() Wechaty require `chromedriver` to be installed.(try to run: "npm install chromedriver"')
log.error('PuppetWebBrowserDriver', 'initChromeDriver() Wechaty require `chromedriver` to be installed.(try to run: "npm install chromedriver" to fix this issue)')
throw e
}
log.warn('PuppetWebBrowserDriver', 'initChromeDriver() exception: %s, retry: %d', e.message, retry)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册