MCPcopy Create free account
hub / github.com/Kong/insomnia / invokeWithNormalizedError

Function invokeWithNormalizedError

packages/insomnia/src/main/ipc/invoke.ts:20–26  ·  view source on GitHub ↗
(channel: string, ...args: unknown[])

Source from the content-addressed store, hash-verified

18};
19
20export const invokeWithNormalizedError = async <T>(channel: string, ...args: unknown[]) => {
21 try {
22 return (await ipcRenderer.invoke(channel, ...args)) as T;
23 } catch (error) {
24 throw normalizeIpcError(error);
25 }
26};

Callers 4

invokePluginBridgeMethodFunction · 0.90
entry.preload.tsFile · 0.90
invokeSyncMethodFunction · 0.90

Calls 1

normalizeIpcErrorFunction · 0.85

Tested by

no test coverage detected