camptocamp / ogc-client

A TypeScript library for interacting with geospatial services
https://camptocamp.github.io/ogc-client/
BSD 3-Clause "New" or "Revised" License
66 stars 12 forks source link

Improve errors received when creating an endpoint #83

Closed jahow closed 2 weeks ago

jahow commented 3 weeks ago

This PR makes sure that errors raised in the worker are reproduced identically on the main thread. Before, all errors were transformed to a generic Error instance because of serialization.

Also adds some more testing on the endpoints.

jahow commented 3 weeks ago

@vprintempsPei this should address the issue raised in #82 in a more future-proof way, could you please confirm?

jahow commented 3 weeks ago

@vprintempsPei I'm going to merge this and cut the 1.2.0 release, let me know if you see something else missing, thanks a lot for your contributions!

vprintempsPei commented 3 weeks ago

Hello, thanks for this big work ! i will try the implementation today. I let you know !

vprintempsPei commented 2 weeks ago

Hello, I implemented it yersteday and it works fine and allows us to improve the error management. Thank you.

jahow commented 2 weeks ago

Great news! thanks. I'm going to do the 1.2.0 release