fix(custom-widgets): address final v2 review feedback (#6451)

This commit is contained in:
Thomas authored and ajnart committed 2026-08-13 19:49:25 +02:00
1 parent 3aa14e22ed
commit 825636c4f6
20 files changed
+186 -92

No files matched your search

@@ -70,7 +70,6 @@ async function performRequest(input: CustomWidgetHttpRequest): Promise<CustomWid
try {
return await performRequestWithinDeadline(input, controller.signal);
} catch (error) {
if (error instanceof CustomWidgetDomainError) throw error;
if (controller.signal.aborted) {
throw new CustomWidgetDomainError({
code: "BAD_GATEWAY",
@@ -78,6 +77,7 @@ async function performRequest(input: CustomWidgetHttpRequest): Promise<CustomWid
cause: error,
});
}
if (error instanceof CustomWidgetDomainError) throw error;
throw error;
} finally {
clearTimeout(timeout);