Improve gerbil logging

This commit is contained in:
Owen 2025-07-31 14:25:22 -07:00
parent 69802e78f8
commit f0138fad4f
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
4 changed files with 52 additions and 27 deletions

View file

@ -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;