Skip to content

Commit 96b4056

Browse files
guo-yuclaude
andcommitted
fix: replace em dash with hyphen in error messages to avoid encoding issues
Also add charset=utf-8 to JSON response Content-Type header. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2400b66 commit 96b4056

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/commands/setup.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function corsHeaders(): Record<string, string> {
113113
function json(data: unknown, status = 200): Response {
114114
return new Response(JSON.stringify(data), {
115115
status,
116-
headers: { "Content-Type": "application/json", ...corsHeaders() },
116+
headers: { "Content-Type": "application/json; charset=utf-8", ...corsHeaders() },
117117
});
118118
}
119119

@@ -367,7 +367,7 @@ async function handleSync(
367367
});
368368
secrets.push({ name: envKey, value });
369369
} catch (err) {
370-
readFailed.push({ name: envKey, error: "Key not found in password manager store it first" });
370+
readFailed.push({ name: envKey, error: "Key not found in password manager - store it first" });
371371
}
372372
};
373373

@@ -382,7 +382,7 @@ async function handleSync(
382382
const value = await (backend as any).readRaw(ref);
383383
secrets.push({ name, value });
384384
} catch {
385-
readFailed.push({ name, error: "Key not found in password manager store it first" });
385+
readFailed.push({ name, error: "Key not found in password manager - store it first" });
386386
}
387387
} else {
388388
await readSecret(name);

0 commit comments

Comments
 (0)