diff --git a/src/index.js b/src/index.js index e5b9f22..0d4bfd1 100644 --- a/src/index.js +++ b/src/index.js @@ -161,7 +161,7 @@ VERBS.concat("any").forEach(function (method) { "timeout of " + config.timeout + "ms exceeded", config, undefined, - config.transitional?.clarifyTimeoutError + config.transitional && config.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED" ); @@ -176,7 +176,7 @@ VERBS.concat("any").forEach(function (method) { "timeout of " + config.timeout + "ms exceeded", config, undefined, - config.transitional?.clarifyTimeoutError + config.transitional && config.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED" );