← Back to issue list

meta: friendlier message for incorrect app command

View original Github issue

Metadata

Project
snapcraft
Number
#2272
Type
pull request
State
merged
Author
sergiusens
Labels
Created
Updated
Closed

Current evaluation

Merged changes that provide friendlier error messages for missing application commands and warn when commands are not relative to the prime directory. Approved by one reviewer, passed CI, and modified four files.

Suggested action:

No scores available.

Issue body

Provide a nicer error for when the command entires under an specific application cannot be found. Also, for future proofing, ensure a warning is raised when these commands are not relative to the prime directory. Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com> - [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)? - [ ] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)? - [ ] Have you successfully run `./runtests.sh static`? - [ ] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged changes that provide friendlier error messages for missing application commands and warn when commands are not relative to the prime directory. Approved by one reviewer, passed CI, and modified four files.
qwen3.6-35b-a3b-mtp-q6 Merged. Improves error messaging for missing application commands and adds a warning when commands are not relative to the prime directory.
qwen3.6-35b-a3b-mtp-q6 Merged improvement to error messaging for missing application commands, adding a warning for non-relative commands in the prime directory.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#3321 meta: add error check for "command not found" snapcraft merged Merged. Adds error handling for missing app commands by replacing PrimedCommandNotFoundError with InvalidAppCommandNotFound and includes unit tests. Approved and merged after brief discussion on exception handling.
71%