Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 2da4309

Browse files
authored
Improve error mesage when cannot resolve arduino path (#570)
1 parent bfcc33d commit 2da4309

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/arduino/arduinoSettings.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export class ArduinoSettings implements IArduinoSettings {
210210
}
211211

212212
if (!this._arduinoPath) { // Pop up vscode User Settings page when cannot resolve arduino path.
213-
vscode.window.showErrorMessage(`Cannot find the arduino installation path. Please specify the "arduino.path" in the User Settings.` +
213+
vscode.window.showErrorMessage(`Cannot find Arduino IDE. Please specify the "arduino.path" in the User Settings.` +
214214
" Requires a restart after change.");
215215
vscode.commands.executeCommand("workbench.action.openGlobalSettings");
216216
} else if (!validateArduinoPath(this._arduinoPath)) { // Validate if arduino path is the correct path.

src/common/constants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const EXAMPLES_URI = vscode.Uri.parse("arduino-manager://arduino/arduino-
2222
export const messages = {
2323
ARDUINO_FILE_ERROR: "The arduino.json file format is not correct.",
2424
NO_BOARD_SELECTED: "Please select the board type first.",
25-
INVALID_ARDUINO_PATH: "Cannot find the Arduino installation path. You can specify the path in the user settings.",
25+
INVALID_ARDUINO_PATH: "Cannot find Arduino IDE. You can specify the path in the user settings.",
2626
FAILED_SEND_SERIALPORT: "Failed to send message to serial port.",
2727
SERIAL_PORT_NOT_STARTED: "Serial Monitor has not been started.",
2828
SEND_BEFORE_OPEN_SERIALPORT: "Please open a serial port first.",

0 commit comments

Comments
 (0)