-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assert extHandle exists? #873
Comments
Agreed, I don't like propagating the null here...it just increases distance between where the error was introduced and where it breaks. (I have also wasted time with this) An assert would be helpful but not for users of a debug build. I would be fine with removing the check and letting it crash, but maybe that's unpopular. Could we not make the default context statically initialized and remove the need for |
Maybe throw an informative exception? |
On Wed, Apr 26, 2023 at 01:34:07PM -0700, Paul Ramsey wrote:
Maybe throw an informative exception?
+1 for informative exception
|
geos/capi/geos_ts_c.cpp
Line 416 in f526c4f
@dbaston, I just got burned by this, and spent a lot of time trying to figure out what I was doing wrong. The problem was that I failed to initGeos. Would it make more sense to assert this, as it's more likely to be a development-time error than a run-time error?
The text was updated successfully, but these errors were encountered: