diff --git a/.github/workflows/app-test.yml b/.github/workflows/app-test.yml index 531d6ae8..fa3f95bb 100644 --- a/.github/workflows/app-test.yml +++ b/.github/workflows/app-test.yml @@ -32,7 +32,7 @@ jobs: - name: Install xvfb if: runner.os == 'Linux' run: | - apt install -y -q --no-install-recommends xvfb + sudo apt install -y -q --no-install-recommends xvfb - name: Setup NodeJS ${{ matrix.node_version }} uses: actions/setup-node@v3 diff --git a/src/preload/index.ts b/src/preload/index.ts index 8fc5f6f2..f5cb5839 100644 --- a/src/preload/index.ts +++ b/src/preload/index.ts @@ -24,6 +24,7 @@ contextBridge.exposeInMainWorld('mainApi', { const result = await ipcRenderer.invoke.apply(null, [channel, ...data]) return result } + throw new Error(`Invoke failed: Unknown ipc channel name: ${channel}`) } })