mirror of
https://github.com/fosrl/pangolin.git
synced 2025-06-30 17:14:46 +02:00
parent
b86ef93211
commit
ddd292422b
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ export async function addPeer(exitNodeId: number, peer: {
|
||||||
return response.data;
|
return response.data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (axios.isAxiosError(error)) {
|
if (axios.isAxiosError(error)) {
|
||||||
throw new Error(`HTTP error! status: ${error.response?.status}`);
|
throw new Error(`Error communicating with Gerbil. Make sure Pangolin can reach the Gerbil HTTP API: ${error.response?.status}`);
|
||||||
}
|
}
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ export async function deletePeer(exitNodeId: number, publicKey: string) {
|
||||||
return response.data;
|
return response.data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (axios.isAxiosError(error)) {
|
if (axios.isAxiosError(error)) {
|
||||||
throw new Error(`HTTP error! status: ${error.response?.status}`);
|
throw new Error(`Error communicating with Gerbil. Make sure Pangolin can reach the Gerbil HTTP API: ${error.response?.status}`);
|
||||||
}
|
}
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue