Properly handle (and log) errors #5
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently all errors are squashed by using
Option
and just returningNone
in case of an error.It would be better to at least log the error when retrieving the forecast or updating the maps.
Maybe wait for https://github.com/SergioBenitez/Rocket/pull/1579?
I propose to add the
errors
field to the JSON (following JSON:API in a way). Note that every metric can have its own errors, that is why it is an array.So something like:
These errors can then be logged.
Then how do you know which metric is causing the error? Also: will metrics that did not cause an error still be part of the response?