canonical / canonical/craft-application

Spec and prototype omitting the traceback for known user errors

Open
#549 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14
Forks
29
Avg merge
2d 3h
Merged PRs (30d)
12

Description

### What needs to get done

Design a mechanism to avoid outputting the craft-tool traceback (to the log file and terminal) in case the error happens for a cause that we know for sure isn't a bug (e.g. a plugin build failure).

### Why it needs to get done

The current log is super noisy and makes it hard to find the "true" cause of a failure:
![image](https://github.com/user-attachments/assets/3ffeb4aa-5973-42f3-b376-ed9106266ce3)

Contributor guide

Open the contributing guide

Research direction

The issue names no file, test, or entry point. Start by locating where craft-tool tracebacks are emitted to the log file and terminal, then examine how known user errors such as plugin build failures are represented. Done means a documented design and prototype that suppresses those tracebacks without hiding the underlying failure cause.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.