Add structured logging and better error handling

This commit is contained in:
SirBlob committed 2026-11-01 13:50:26 -05:00
1 parent db4e3c9611
commit 68c7dd76f2
31 files changed
+640 -109

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
import { api } from "./api.js";
import { api, describeError } from "./api.js";
const fields = {
form: document.getElementById("download-form"),
@@ -61,7 +61,7 @@ async function submitDownloads(event, onCreated) {
});
} catch (error) {
failedUrls.push(url);
if (!firstError) firstError = error.message;
if (!firstError) firstError = describeError(error);
}
}