We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f5dfb5 commit 018d4b7Copy full SHA for 018d4b7
src/index.ts
@@ -230,7 +230,14 @@ if (!amMainInstance) {
230
}
231
232
function handleExternalNavigation(url: URL) {
233
- shell.openExternal(url.toString());
+ shell.openExternal(url.toString())
234
+ .catch((error) => {
235
+ showErrorAlert(
236
+ "Failed to open URL",
237
+ `HTTP Toolkit could not open ${url.toString()} in your browser, because: ${error?.message ?? error ?? 'unknown error'}`
238
+ );
239
+ throw error;
240
+ });
241
242
243
function showErrorAlert(title: string, body: string) {
0 commit comments