fix(custom-widgets): address final v2 review feedback (#6451)
This commit is contained in:
1 parent
df967751f6
commit
4f6e335f72
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);
|
||||
|
||||
Reference in new issue
Block a user