diff --git a/arduino/cores/packagemanager/package_manager.go b/arduino/cores/packagemanager/package_manager.go index c91597e55be..5f8bd86edec 100644 --- a/arduino/cores/packagemanager/package_manager.go +++ b/arduino/cores/packagemanager/package_manager.go @@ -186,7 +186,7 @@ func (pm *PackageManager) ResolveFQBN(fqbn *cores.FQBN) ( board := platformRelease.Boards[fqbn.BoardID] if board == nil { return targetPackage, platformRelease, nil, nil, nil, - fmt.Errorf(tr("board %s:%s not found"), platformRelease, fqbn.BoardID) + fmt.Errorf(tr("board %s not found"), fqbn.StringWithoutConfig()) } buildProperties, err := board.GetBuildProperties(fqbn.Configs) diff --git a/i18n/data/en.po b/i18n/data/en.po index c2c77175b40..d5cf7925289 100644 --- a/i18n/data/en.po +++ b/i18n/data/en.po @@ -2444,8 +2444,8 @@ msgid "binary file not found in %s" msgstr "binary file not found in %s" #: arduino/cores/packagemanager/package_manager.go:189 -msgid "board %s:%s not found" -msgstr "board %s:%s not found" +msgid "board %s not found" +msgstr "board %s not found" #: commands/board/list.go:41 msgid "board not found" diff --git a/test/test_compile.py b/test/test_compile.py index 5369a0fe185..bdf6be7edfc 100644 --- a/test/test_compile.py +++ b/test/test_compile.py @@ -865,7 +865,7 @@ def test_compile_using_boards_local_txt(run_command, data_dir): # Verifies compilation fails because board doesn't exist res = run_command(["compile", "--clean", "-b", fqbn, sketch_path]) assert res.failed - assert "Error during build: Error resolving FQBN: board arduino:avr@1.8.3:nessuno not found" in res.stderr + assert "Error during build: Error resolving FQBN: board arduino:avr:nessuno not found" in res.stderr # Use custom boards.local.txt with made arduino:avr:nessuno board boards_local_txt = Path(data_dir, "packages", "arduino", "hardware", "avr", "1.8.3", "boards.local.txt") @@ -943,8 +943,7 @@ def test_compile_manually_installed_platform_using_boards_local_txt(run_command, res = run_command(["compile", "--clean", "-b", fqbn, sketch_path]) assert res.failed assert ( - "Error during build: Error resolving FQBN: board arduino-beta-development:avr@1.8.3:nessuno not found" - in res.stderr + "Error during build: Error resolving FQBN: board arduino-beta-development:avr:nessuno not found" in res.stderr ) # Use custom boards.local.txt with made arduino:avr:nessuno board