mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
handle unreachable url (#4097)
This commit is contained in:
parent
70da2acafb
commit
a15d0864a7
@ -20,6 +20,10 @@ export const httpClient = {
|
||||
maxRedirects: 10,
|
||||
});
|
||||
} catch (err) {
|
||||
if (!err.response){
|
||||
// NOTE: config.url is unreachable
|
||||
throw err;
|
||||
}
|
||||
response = err.response;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user