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

runtime error, if path not existing #220

Open
jthDEV opened this issue Aug 16, 2019 · 1 comment
Open

runtime error, if path not existing #220

jthDEV opened this issue Aug 16, 2019 · 1 comment

Comments

@jthDEV
Copy link

jthDEV commented Aug 16, 2019

error handling might be added for the case of a misspelled or not existing starting point (directory) is given. Plato currently replies with:

/usr/local/lib/node_modules/plato/lib/util.js:15
  var lastSlash = files[0].lastIndexOf(path.sep);
                          ^

TypeError: Cannot read property 'lastIndexOf' of undefined
    at Object.exports.findCommonBase (/usr/local/lib/node_modules/plato/lib/util.js:15:27)
    at Object.exports.inspect (/usr/local/lib/node_modules/plato/lib/plato.js:87:29)
    at Object.exports.exec (/usr/local/lib/node_modules/plato/lib/cli.js:53:9)
    at Object.<anonymous> (/usr/local/lib/node_modules/plato/bin/plato:19:5)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)```
@kyungilpark
Copy link

duplicated issue with #133, #205
This project is no longer maintained, so I submitted a PR(#218) but it wasn't merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants