throw error
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
ale 2024-09-23 22:26:18 +02:00
parent 3d78001edf
commit 71c4299192

View File

@ -31,15 +31,15 @@ module.exports = async (client, apex, app) => {
}), }),
signal: ac.signal, signal: ac.signal,
keepalive: false, keepalive: false,
timeout: 4000 timeout: 3000
}), }),
json = await response.json() json = await response.json()
setImmediate(() => { ac.abort() }) // setImmediate(() => { ac.abort() })
return json return json
} catch (e) { } catch (e) {
setImmediate(() => { ac.abort() }) // setImmediate(() => { ac.abort() })
// console.error(e) // console.error(e)
return throw e
} }
}, },
scanInstance = async instance => { scanInstance = async instance => {
@ -133,8 +133,7 @@ module.exports = async (client, apex, app) => {
return return
} }
} catch (e) { } catch (e) {
console.error(e) throw e
return
} }
}, },
scanPart = async function* (instancesall, index) { scanPart = async function* (instancesall, index) {