summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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);