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

Improve error mesage when cannot resolve arduino path #570

Merged
merged 1 commit into from
May 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/arduino/arduinoSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export class ArduinoSettings implements IArduinoSettings {
}

if (!this._arduinoPath) { // Pop up vscode User Settings page when cannot resolve arduino path.
vscode.window.showErrorMessage(`Cannot find the arduino installation path. Please specify the "arduino.path" in the User Settings.` +
vscode.window.showErrorMessage(`Cannot find Arduino IDE. Please specify the "arduino.path" in the User Settings.` +
" Requires a restart after change.");
vscode.commands.executeCommand("workbench.action.openGlobalSettings");
} else if (!validateArduinoPath(this._arduinoPath)) { // Validate if arduino path is the correct path.
Expand Down
2 changes: 1 addition & 1 deletion src/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const EXAMPLES_URI = vscode.Uri.parse("arduino-manager://arduino/arduino-
export const messages = {
ARDUINO_FILE_ERROR: "The arduino.json file format is not correct.",
NO_BOARD_SELECTED: "Please select the board type first.",
INVALID_ARDUINO_PATH: "Cannot find the Arduino installation path. You can specify the path in the user settings.",
INVALID_ARDUINO_PATH: "Cannot find Arduino IDE. You can specify the path in the user settings.",
FAILED_SEND_SERIALPORT: "Failed to send message to serial port.",
SERIAL_PORT_NOT_STARTED: "Serial Monitor has not been started.",
SEND_BEFORE_OPEN_SERIALPORT: "Please open a serial port first.",
Expand Down