This is for proper error reporting when --bypassPipeline and -b are both set, which isn't allowed right now.
I don't think this counts as incorrect usage of the library, so I'm rejecting the promise instead of throwing an error. Otherwise the error is not caught in bin/obj2gltf.js.
If this should still be a DeveloperError, I can wrap the obj2gltf call in bin/obj2gltf.js in a try-catch.
For #71
This is for proper error reporting when
--bypassPipeline
and-b
are both set, which isn't allowed right now.I don't think this counts as incorrect usage of the library, so I'm rejecting the promise instead of throwing an error. Otherwise the error is not caught in
bin/obj2gltf.js
.If this should still be a
DeveloperError
, I can wrap theobj2gltf
call inbin/obj2gltf.js
in a try-catch.