Panic when library specified via upgrade
command is not upgradable
#1868
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
Individual libraries can be specified for upgrade via the arguments to the
arduino-cli lib upgrade
command.🐛 If the library is not upgradable, either due to already being at the latest version, or else due to not being installed, Arduino CLI panics.
To reproduce
Upgrade library already at latest version
🐛 The command panicked even though this operation should simply exit with status 0
Upgrade library that is not installed
🐛 The command panicked instead of clearly communicating the problem to the user.
Expected behavior
Arduino CLI only panics on unexpected (i.e., caused by a bug in the Arduino CLI codebase) failures. Any failure that can result from normal (even if incorrect) usage should be handled gracefully.
Arduino CLI version
3cd782d
Operating system
Windows
Operating system version
Windows 10
Additional context
I bisected the regression to 276b0cc
Issue checklist
The text was updated successfully, but these errors were encountered: