summaryrefslogtreecommitdiffhomepage
path: root/desktop
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2025-07-15 17:09:48 +0200
committerDavid Lönnhager <david.l@mullvad.net>2025-07-16 13:16:52 +0200
commit4b01037f04dbdd1a8abc3550a973b06f8a852872 (patch)
tree82e7ef6dbbabafdeb9c5cb68c451ce930398b859 /desktop
parenteb37f45de40a72e3bb2dc2fa3366a3f8441072e9 (diff)
downloadmullvadvpn-4b01037f04dbdd1a8abc3550a973b06f8a852872.tar.xz
mullvadvpn-4b01037f04dbdd1a8abc3550a973b06f8a852872.zip
Print cause of named pipe permissions error
Diffstat (limited to 'desktop')
-rw-r--r--desktop/packages/mullvad-vpn/src/main/daemon-rpc.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/desktop/packages/mullvad-vpn/src/main/daemon-rpc.ts b/desktop/packages/mullvad-vpn/src/main/daemon-rpc.ts
index aed89bb3c9..98d941cd81 100644
--- a/desktop/packages/mullvad-vpn/src/main/daemon-rpc.ts
+++ b/desktop/packages/mullvad-vpn/src/main/daemon-rpc.ts
@@ -104,8 +104,12 @@ export class DaemonRpc extends GrpcClient {
try {
const { pipeIsAdminOwned } = await import('windows-utils');
pipeIsAdminOwned(DAEMON_RPC_PATH);
- } catch {
- throw new Error('Failed to verify admin ownership of named pipe');
+ } catch (e) {
+ if (e && typeof e === 'object' && 'message' in e) {
+ throw new Error(`Failed to verify admin ownership of named pipe. ${e.message}`);
+ } else {
+ throw new Error('Failed to verify admin ownership of named pipe');
+ }
}
} else {
const stat = fs.statSync(DAEMON_RPC_PATH);