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

No verification that input file exists (and obscure error message) #255

Open
taiya opened this issue Jul 29, 2021 · 0 comments
Open

No verification that input file exists (and obscure error message) #255

taiya opened this issue Jul 29, 2021 · 0 comments

Comments

@taiya
Copy link

taiya commented Jul 29, 2021

Just wanted to leave a not that the library does not check whether the file exists, and throws a difficult to interpret error. Dropping it here for so that is searchable.

obj2gltf  -i this/file/does/not/exit.obj -o /foo/bar
/usr/local/lib/node_modules/obj2gltf/node_modules/universalify/index.js:15
  }, 'name', { value: fn.name })
                         ^

TypeError: Cannot read property 'name' of undefined
    at exports.fromCallback (/usr/local/lib/node_modules/obj2gltf/node_modules/universalify/index.js:15:26)
    at Object.<anonymous> (/usr/local/lib/node_modules/obj2gltf/node_modules/fs-extra/lib/fs/index.js:57:27)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/obj2gltf/node_modules/fs-extra/lib/index.js:5:6)
make: *** [obj2gltf_test2] Error 1
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

1 participant