Skip to content

Commit b9b2b22

Browse files
Bulat Skill7claude
andcommitted
fix: unescape string literals in bin/aictrl error messages
Double-escaped \\n and \" were printing literal backslash characters instead of newlines and quotes. Caught by aictrl self-review. Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent c77f872 commit b9b2b22

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/cli/bin/aictrl‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ if (fs.existsSync(bunEntry)) {
182182
if (result.error) {
183183
if (result.error.code === "ENOENT") {
184184
console.error(
185-
"No compiled binary found for your platform and Bun is not installed.\\n" +
185+
"No compiled binary found for your platform and Bun is not installed.\n" +
186186
"Either install Bun (https://bun.sh) or install the platform package: " +
187-
names.map((n) => `\"${n}\"`).join(" or "),
187+
names.map((n) => `"${n}"`).join(" or "),
188188
)
189189
} else {
190190
console.error(result.error.message)
@@ -196,7 +196,7 @@ if (fs.existsSync(bunEntry)) {
196196

197197
console.error(
198198
"It seems that your package manager failed to install the right version of the aictrl CLI for your platform. You can try manually installing " +
199-
names.map((n) => `\"${n}\"`).join(" or ") +
199+
names.map((n) => `"${n}"`).join(" or ") +
200200
" package, or install Bun (https://bun.sh) to run from source.",
201201
)
202202
process.exit(1)

0 commit comments

Comments
 (0)