Don't swallow error on retry

This commit is contained in:
Sander Declerck 2026-01-14 15:31:37 +01:00
parent cf8e39c5fd
commit 0e6d002b4c
No known key found for this signature in database

View file

@ -4,6 +4,7 @@ import {
ECOSYSTEM_JS,
ECOSYSTEM_PY,
} from "../config/settings.js";
import { ui } from "../environment/userInteraction.js";
const malwareDatabaseUrls = {
[ECOSYSTEM_JS]: "https://malware-list.aikido.dev/malware_predictions.json",
@ -89,6 +90,10 @@ async function retry(func, attempts) {
try {
return await func();
} catch (error) {
ui.writeVerbose(
"An error occurred while trying to download the Aikido Malware database",
error
);
lastError = error;
}