mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-22 21:58:44 +01:00
Fixed error handling
This commit is contained in:
parent
ff3321d643
commit
bd5bc4acb2
@ -23,9 +23,9 @@ function makeAxiosInstance() {
|
||||
return response;
|
||||
},
|
||||
(error) => {
|
||||
const end = Date.now();
|
||||
const start = error.config.headers['request-start-time'];
|
||||
if (error.response) {
|
||||
const end = Date.now();
|
||||
const start = error.config.headers['request-start-time'];
|
||||
error.response.headers['request-duration'] = end - start;
|
||||
}
|
||||
return Promise.reject(error);
|
||||
|
Loading…
Reference in New Issue
Block a user