Skip to content

Commit e5c0c59

Browse files
committed
fix: name the host app in missing-socket guidance
1 parent 61fc9de commit e5c0c59

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎dist/client.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const caller = (config) => async (args, signal, options = {}) => {
5151
if (!existsSync(client))
5252
throw new Error(`The native desktop client is missing at ${client}.`);
5353
if (!existsSync(socket)) {
54-
throw new Error(`Start ${config.name ?? "the desktop host app"} to enable native desktop tools.`);
54+
throw new Error(`Open ${config.name ?? "the desktop host app"} on this host to enable native desktop tools.`);
5555
}
5656
signal.throwIfAborted();
5757
options.onDispatch?.();

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"engines": { "node": ">=22" },
99
"exports": {
1010
".": { "types": "./dist/client.d.ts", "default": "./dist/client.js" },
11-
"./protocol": { "types": "./dist/protocol.d.ts", "default": "./dist/protocol.js" }
11+
"./protocol": { "types": "./dist/protocol.d.ts", "default": "./dist/protocol.js" },
12+
"./package.json": "./package.json"
1213
},
1314
"bin": { "desktop-tools-build": "dist/build.js" },
1415
"files": ["dist", "native/Package.swift", "native/Package.resolved", "native/sources", "native/patches", "LICENSE", "README.md"],

‎src/client.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const caller = (config: DesktopConfig): Native => async (args, signal, options =
107107
const { client, socket } = config;
108108
if (!existsSync(client)) throw new Error(`The native desktop client is missing at ${client}.`);
109109
if (!existsSync(socket)) {
110-
throw new Error(`Start ${config.name ?? "the desktop host app"} to enable native desktop tools.`);
110+
throw new Error(`Open ${config.name ?? "the desktop host app"} on this host to enable native desktop tools.`);
111111
}
112112
signal.throwIfAborted();
113113
options.onDispatch?.();

0 commit comments

Comments
 (0)