unicef / magicbox-latlon-admin-server

API that takes latitude/longitude pairs and returns an ID and metadata for the administrative boundaries they're located within
BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Add exception handler to prevent crash #12

Closed joyrex2001 closed 6 years ago

joyrex2001 commented 6 years ago

This will keep the server running, even if the database is not accessable, or produces another kind of error. The actual exception will be logged, and and error json will be returned to the client (similar to the errors produced by the parameter checking).

This fixes #3.