Skip to content

Commit

Permalink
Rethrow unknown errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bachdavi committed Sep 22, 2023
1 parent 590ecd3 commit 1c02f99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/SolverAPI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,10 @@ function solve(fn, json::Request, solver::MOI.AbstractOptimizer)
return _err(Domain)
elseif e isa ErrorException
return _err(Other)
else
elseif e isa Error
return response(e)
else
rethrow()
end
end
end
Expand Down

0 comments on commit 1c02f99

Please sign in to comment.