Refactor error handling in download function

This commit is contained in:
buzzcode2007 2024-04-03 15:26:10 +08:00
parent 3ccf5d9e19
commit 1bef8fb268

View file

@ -42,8 +42,7 @@ export async function download(URL, TYPE, VERIFY_ONLY = false, STRICT = false) {
}; };
} }
} catch(err) { } catch(err) {
alerts.error(err.name, err.message, err.stack); throw err;
let DATA = null;
} }
// Return the filter. // Return the filter.