diff --git a/product-status.md b/product-status.md index db2a82cd2..822aff273 100644 --- a/product-status.md +++ b/product-status.md @@ -36,4 +36,4 @@ Chrysalis requires a browser with WebSerial support. Right now, this means Chrom ## Last Updated -Feb 21, 2024 +Feb 25, 2024 diff --git a/src/renderer/i18n/en.json b/src/renderer/i18n/en.json index e7a40be89..2d9e8dfa6 100644 --- a/src/renderer/i18n/en.json +++ b/src/renderer/i18n/en.json @@ -541,6 +541,7 @@ "disconnect": "Disconnect", "noUdev": "Chysalis requires udev to be able to scan for devices, but it appears it is not available.", "installUdevRules": "Fix it", + "connectionFailed": "I couldn't connect to the keyboard. It may already be connected in another application or browser window. The error I got was: {{error}}", "permissionError": "Your computer won't let Chrysalis talk to your keyboard. (You do not have read/write permissions to {{path}}.)", "permissionErrorSuggestion": "Chrysalis can fix this by installing a udev rules file into /etc/udev/rules.d/." }, diff --git a/src/renderer/screens/KeyboardSelect.js b/src/renderer/screens/KeyboardSelect.js index 831437431..b9eff186e 100644 --- a/src/renderer/screens/KeyboardSelect.js +++ b/src/renderer/screens/KeyboardSelect.js @@ -71,7 +71,7 @@ const KeyboardSelect = (props) => { device: activeDevice, }); setOpening(false); - toast.error(err.toString()); + toast.error(t("keyboardSelect.connectionFailed", { error: err.toString() })); } }; diff --git a/src/renderer/utils/connectToSerialport.js b/src/renderer/utils/connectToSerialport.js index d4cf85968..e76542f3a 100644 --- a/src/renderer/utils/connectToSerialport.js +++ b/src/renderer/utils/connectToSerialport.js @@ -30,7 +30,10 @@ export const connectToSerialport = async () => { }); } catch (e) { if (!serialPort) { - console.error("Failed to open serial port", e); + console.error( + "I couldn't connect to your keyboard's serial port. That might be because another program or browser window is already connected.", + e + ); return; } }