diff --git a/resources/electron/electron-plugin/dist/server/utils.js b/resources/electron/electron-plugin/dist/server/utils.js index 7f07395b..b3058a77 100644 --- a/resources/electron/electron-plugin/dist/server/utils.js +++ b/resources/electron/electron-plugin/dist/server/utils.js @@ -32,7 +32,10 @@ export function notifyLaravel(endpoint_1) { }, }); } - catch (_a) { + catch (e) { + if (parseInt(process.env.SHELL_VERBOSITY) > 0) { + console.error(`notifyLaravel('${endpoint}') failed:`, e instanceof Error ? e.message : e); + } } }); } diff --git a/resources/electron/electron-plugin/src/server/utils.ts b/resources/electron/electron-plugin/src/server/utils.ts index 97c771a5..94825222 100644 --- a/resources/electron/electron-plugin/src/server/utils.ts +++ b/resources/electron/electron-plugin/src/server/utils.ts @@ -23,8 +23,10 @@ export async function notifyLaravel(endpoint: string, payload = {}) { 'X-NativePHP-Secret': state.randomSecret, }, }); - } catch { - // + } catch (e) { + if (parseInt(process.env.SHELL_VERBOSITY) > 0) { + console.error(`notifyLaravel('${endpoint}') failed:`, e instanceof Error ? e.message : e); + } } }