fix: surface hidden errors and add batch rejection tests

Fix empty catch blocks in settings dialog (logo upload/delete) and
automate page (pipeline save) that silently swallowed errors. Users
now see error messages when these operations fail.

Add 5 integration tests verifying batch endpoint returns 404 for
custom-route tools (remove-background, upscale, ocr, blur-faces,
erase-object), matching the pipeline rejection tests.
This commit is contained in:
Siddharth Kumar Sah
2026-03-28 14:45:14 +08:00
parent fa01388742
commit 4a504281a3
3 changed files with 31 additions and 3 deletions
+4 -1
View File
@@ -66,9 +66,12 @@ export function AutomatePage() {
});
if (res.ok) {
await loadPipelines();
} else {
const data = await res.json().catch(() => ({}));
setExecutionError(data.error || "Failed to save pipeline");
}
} catch {
// Error handling could be added
setExecutionError("Connection error while saving pipeline.");
} finally {
setSaving(false);
}