fix(cli): mention remote daemon host on ls connect failure (#1043)

This commit is contained in:
mehmet turac
2026-05-16 05:12:49 +00:00
committed by GitHub
parent 35c582913d
commit 675817f0b2
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -178,7 +178,8 @@ export async function runLsCommand(
const error: CommandError = { const error: CommandError = {
code: "DAEMON_NOT_RUNNING", code: "DAEMON_NOT_RUNNING",
message: `Cannot connect to daemon at ${host}: ${message}`, message: `Cannot connect to daemon at ${host}: ${message}`,
details: "Start the daemon with: paseo daemon start", details:
"Start the daemon with: paseo daemon start\nFor a remote daemon, pass --host <host:port> or set PASEO_HOST.",
}; };
throw error; throw error;
} }
+2
View File
@@ -70,6 +70,8 @@ try {
output.toLowerCase().includes("connect") || output.toLowerCase().includes("connect") ||
output.toLowerCase().includes("cannot"); output.toLowerCase().includes("cannot");
assert(hasError, "error message should mention connection issue"); assert(hasError, "error message should mention connection issue");
assert(output.includes("--host <host:port>"), "error message should mention --host");
assert(output.includes("PASEO_HOST"), "error message should mention PASEO_HOST");
console.log("✓ paseo ls handles daemon not running\n"); console.log("✓ paseo ls handles daemon not running\n");
} }