mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Don't swallow error on retry
This commit is contained in:
parent
a5d545f29b
commit
6f4eaf5234
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue