CadQuery / cq-cli

Command Line Interface for executing CadQuery scripts and converting their output to another format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exitcode is always 0 regardless if errors/exceptions occured

mryndzionek opened this issue · comments

Exitcode is always 0 regardless if errors/exceptions occured

@mryndzionek So in places like this you would want to see return 1 or some other value, correct?

What should the list of exit codes look like?

@mryndzionek So in places like this you would want to see return 1 or some other value, correct?

yes, that is a good start. For now I'm just interested in failed "builds" (for automation).

@mryndzionek Are you able to try this branch to see if it resolves this issue? It sounds like the exit code you will be most interested in is 100, although they are all listed in the readme changes. I haven't written a test yet, but I tried locally with a fillet that was way too large (which always causes a generic BRep_API error), and it worked fine. If it works for you I'll get a test written and get this merged.

If it works for you I'll get a test written and get this merged.

Yes, works okay. Thank you!

#16 has been merged. I also had to fix some errors that were happening because STL export in CadQuery defaults to binary instead of ASCII now. I think everything should be working fine now.