From a8a11831e1724246adf0b658f89194aec1bbf313 Mon Sep 17 00:00:00 2001 From: bernardo31p Date: Sat, 22 Jun 2024 20:24:09 +0200 Subject: [PATCH] Improved error handling --- app/assets/js/tools.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/js/tools.js b/app/assets/js/tools.js index 4e8d280..c84f565 100644 --- a/app/assets/js/tools.js +++ b/app/assets/js/tools.js @@ -686,7 +686,11 @@ function downloadURL(mode, location, url, percentage, codecAudio, codecVideo, qu if (!aborted) resolve("success"); else resolve("aborted"); + + return; } + + resolve("error"); }); }); }