OptimoJoe / Optizelle

Optizelle [op-tuh-zel] is an open source software library designed to solve general purpose nonlinear optimization problems.
www.optimojoe.com/products/optizelle
63 stars 13 forks source link

Improving the input error message and avoiding the exit call #4

Closed Dapid closed 10 years ago

Dapid commented 10 years ago

The error message of the example was not clear to me, so I have made it a tad more clear.

Also, it raises a ValueError instead of a raw exit because it contains more information.

josyoun commented 10 years ago

This is related to issue #5. What you are doing is correct and the right thing to do. In the end, though, I need to overhaul the entire error reporting infrastructure to pass back errors in whatever is the best method for the client language. Unfortunately, this is going to change the API slightly, which is unfortunate, but my hope is that it'll make things much easier to work with in the long run.

Thanks for raising the point and suggesting the fix. I'm going to close it out in favor of the issue and work to fix the problem sooner rather than later.