diff --git a/src/lib/yahooFinanceFetch.js b/src/lib/yahooFinanceFetch.js index eac5b413..8f094a56 100644 --- a/src/lib/yahooFinanceFetch.js +++ b/src/lib/yahooFinanceFetch.js @@ -50,7 +50,7 @@ async function yahooFinanceFetch(urlBase, params={}, fetchOptionsOverrides={}, f console.error(url); const error = new errors.HTTPError(res.statusText); error.code = res.status; - throw new error; + throw error; } return result;