Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle bad input from cli better #162

Open
L0wry opened this issue Feb 7, 2019 · 0 comments
Open

Handle bad input from cli better #162

L0wry opened this issue Feb 7, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@L0wry
Copy link
Contributor

L0wry commented Feb 7, 2019

Running
node ./lib/bin/run.js snap --browser chrome--config e2eTests/chrome/snap/snapConfig.json
results in

info ayespy Logger Log level is info
ERR! [run] : ☠️️️️️️️ ☠️ ️️️️️️☠️️️️️️️ ☠️️️️️️️ ☠️️️️️️️ ☠️️️ ERROR FOUND ☠️️️️️️️ ☠️️️️️️️ ☠️️️️️️️ ☠️️️️️️️ ☠️️️️️️️ ☠️️️
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string
    at assertPath (path.js:28:11)
    at Object.resolve (path.js:1179:7)
    at Command._commander2.default.version.command.option.option.option.option.action (/Users/matthewlowry/dev/news/AyeSpy/lib/bin/run.js:66:43)
    at Command.listener (/Users/matthewlowry/dev/news/AyeSpy/node_modules/commander/index.js:315:8)
    at Command.emit (events.js:159:13)
    at Command.parseArgs (/Users/matthewlowry/dev/news/AyeSpy/node_modules/commander/index.js:651:12)
    at Command.parse (/Users/matthewlowry/dev/news/AyeSpy/node_modules/commander/index.js:474:21)
    at Object.<anonymous> (/Users/matthewlowry/dev/news/AyeSpy/lib/bin/run.js:148:21)
    at Module._compile (module.js:660:30)
    at Object.Module._extensions..js (module.js:671:10)

not great

@L0wry L0wry added the enhancement New feature or request label Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant