Show more information about error

This commit is contained in:
Owen
2026-06-08 15:34:22 -07:00
parent 08a84d4bb1
commit b4ecfceb5e

View File

@@ -152,7 +152,8 @@ export default async function SshPage() {
await waitForRoundTripCompletion(messageIds, cookieHeader);
} catch (err) {
console.error("Error signing SSH key:", err);
error = t("sshErrorSignKeyFailed");
const detail = err instanceof Error ? err.message : String(err);
error = `${t("sshErrorSignKeyFailed")}: ${detail}`;
}
}