Skip to content
Snippets Groups Projects
Verified Commit 7bbf4628 authored by Sam Whited's avatar Sam Whited
Browse files

Handle error when fetching gateways


Previously this error was not handled at the top level, resulting in a
panic if the gateways could not be populated.
This patch removes the logging when fetching the JSON as this double
handles the error (it logs it and returns it to be handled again), and
handles it at the top level instead where we log it an exit (keeping the
same behavior as the panic but with a nice error message and no stack
dump).

Signed-off-by: default avatarSam Whited <sam@samwhited.com>
parent e37c3609
No related branches found
No related tags found
1 merge request!13Handle error when fetching gateways
Pipeline #79538 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment