Related:
- Exception thrown by objective function is not rethrown by nlopt · Issue #156 · JuliaOpt/NLopt.jl · GitHub
- Fix #156, exceptions from FORCED_STOP not rethrown by ikirill · Pull Request #157 · JuliaOpt/NLopt.jl · GitHub
Nlopt catches all errors and throws FORCED_STOP. The right fix would be to communicate what error caused the FORCED_STOP.