diff --git a/index.js b/index.js index c2228ae22250eea0e653d21f1919ee78141aae2f..57a3835039e5c97ddc30a60e25905c4733de5302 100644 --- a/index.js +++ b/index.js @@ -315,7 +315,7 @@ async function checkConsentForLoadCurve( return false } else if (err.statusCode === 404 || err.code === 404 && err.error === "no_data_found") { log('info', 'Handling half-hour error on connection') - return false + throw 'Handling half-hour error on connection' } else { throw err