Log exceptions rather than swallow them
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 48/100
Research direction
Start in src/kup/main.py at the exception handler for kup push around lines 781–783. Inspect how failures are handled and whether similar handlers swallow exception details. Done means exception messages are available at debug level while the default user-facing output remains unchanged.
Written by the indexing model from the issue text.
Description
Sometimes we would like to see the raw error messages when a kup command fails. This is very useful on CI, but I do agree that we'd really want to hide that from the users by default.
I propose we log the messages of exceptions at debug level, for example here in the implementation of kup push:
except Exception as e:
rich.print('❗ [red]Could not push binaries to cachix!')
logger.debug(e.msg) # we should add this
sys.exit(1)
- Dominant language
- Python
- Stars
- 10
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from runtimeverification/kup
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
runtimeverification/kup#149 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
runtimeverification/kup#138 ·
-
runtimeverification/kup#137 · 1 comment · 1 assignee ·
-
runtimeverification/kup#136 · 1 assignee ·
-
runtimeverification/kup#135 · 1 assignee ·
All issues in runtimeverification/kup
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100