mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-28 21:58:15 +02:00
Improve gerbil logging
This commit is contained in:
parent
69802e78f8
commit
f0138fad4f
4 changed files with 52 additions and 27 deletions
|
@ -341,8 +341,8 @@ export async function updateClient(
|
|||
});
|
||||
} catch (error) {
|
||||
if (axios.isAxiosError(error)) {
|
||||
throw new Error(
|
||||
`Error communicating with Gerbil. Make sure Pangolin can reach the Gerbil HTTP API: ${error.response?.status}`
|
||||
logger.error(
|
||||
`Error updating destinations (can Pangolin see Gerbil HTTP API?) for exit node at ${destination.reachableAt} (status: ${error.response?.status}): ${error.message}`
|
||||
);
|
||||
}
|
||||
throw error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue