Skip to content

Fix unclear error message returned some times when using a wrong FQBN #1366

Closed
@silvanocerza

Description

@silvanocerza

Bug Report

Current behavior

arduino-cli board details arduino:avr:una
Error getting board details: loading board data: board arduino:avr@1.8.3:una not found

When calling some commands that expect an FQBN the error returned is not clear if the board ID part of the FQBN doesn't exist for that platform.

Expected behavior

arduino-cli board details arduino:avr:una
Error getting board details: loading board data: board arduino:avr:una not found, did you mean arduino:avr:uno?
arduino-cli board details arduino:avr:una
Error getting board details: loading board data: board arduino:avr:una not found

A clearer error message should be shown, it would be cool if a suggestion could be made for the correct FQBN.

Environment

  • CLI version (output of arduino-cli version): arduino-cli alpha Version: 0.18.3 Commit: d710b642
  • OS and platform: doesn't matter

Additional context

None.

Metadata

Metadata

Assignees

Labels

type: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions