← Back to issue list

cli: add what, why, and how to fix to the common errors

View original Github issue

Metadata

Project
snapcraft
Number
#1640
Type
pull request
State
merged
Author
come-maiz
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #1640 (c1200d9ee) added explanations and corrective guidance to common CLI errors across 15 files.

Resolution: closed resolved

Reason: PR #1640 was merged as commit c1200d9ee, adding what, why, and how-to-fix guidance to common CLI errors and resolving issue #1702.

Evaluated by: mr-cal-bot

No scores available.

Issue body

- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] 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)? - [x] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)? - [x] Have you successfully run `./runtests.sh static`? - [x] Have you successfully run `./runtests.sh unit`? ----- First iteration over the suggestions by mpt.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #1640 (c1200d9ee) added explanations and corrective guidance to common CLI errors across 15 files.
stealth/space-bunny-alpha — closed resolved Merged PR #1640 (commit c1200d9ee) added explanations and corrective guidance to common CLI errors, updating 15 files (+484/-155).
stealth/space-bunny-alpha — closed resolved Merged PR #1640 improved common CLI errors with explanations and fix guidance, updating 15 files (+484/−155) after two approvals.
qwen/qwen3.6-35b-a3b — — Merged pull request adding what, why, and how to fix guidance to common CLI error messages. Approved by two reviewers, modified 15 files (+484/-155 lines), and passed CI after a temporary test failure was rerun.
qwen3.6-35b-a3b-mtp-q6 — — Merged after addressing reviewer feedback and resolving transient test failures. The update enhances the CLI by adding what, why, and how-to-fix explanations to common error messages.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft#1702 (confidence 98%)

    Follow-up issue #1702 was resolved by the error-message improvements merged in PR #1640.

Related issues

Issue Project State Summary Similarity
#1790 cli: include consistent commands to fix error conditions snapcraft merged Merged PR #1790 at b78dbda8, standardizing corrective commands in CLI error messages and closing #1733; prerequisite #1640 added richer common-error guidance.
81%
#1702 Apply guidelines from design to error messages with reasons for errors snapcraft closed Merged PR #1640 (commit c1200d9ee) added what, why, and how-to-fix guidance to common CLI errors, resolving #1702.
80%
#1347 cli: do not duplicate errors snapcraft merged Merged as commit 9e8e336de, PR #1347 eliminated duplicate CLI validation errors and refactored error handling to prevent recurrence.
74%
#1733 Apply guidelines from design to error messages with commands that fix snapcraft closed Merged PR #1790 standardized CLI error messages with consistent corrective commands and closed #1733 (commit b78dbda8).
72%
#3125 cli: cleanup error handling snapcraft merged Merged PR #3125 in commit 68c64253b, simplifying CLI error handling with inline typing and removing obsolete Ubuntu 16.04 compatibility logic.
70%