UX: error on 'directory does not exist'
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Riproduci il problema con chisel cut --release=./ --root=mych libgcc-14-dev_libs e traccia come l'errore relativo alla directory mych mancante arriva all'utente. Il lavoro è completato quando il comando segnala un errore mirato e comprensibile per l'utente che nomina mych, invece di esporre la gerarchia degli errori di base-files.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The error message when attempting to cut into a directory (to make sure all the slice is correct) is a bit confusing. When running: chisel cut --release=./ --root=mych libgcc-14-dev_libs i get error: cannot extract from package "base-files": target directory does not exist which gives me the full error hierarchy and points towards something wrong with the base-files, while the actual issue is that the directory mych does not exist.
As a UX feedback; I'd suggest caching this case and creating a more user friendly error. At least I'd present just the bottom error, and maybe even add the directory name. Something like cannot cut into mych directory. it does not exist.
I imagine this kind of treatment might be appropriate for some other errors, therefore my suggestion for reporting errors to the user would be to:
- allow the error to propagate to the topmost level normally - exactly as it is implemented at the moment
- just before passing the error to the user, check whether it is a special error which can be made more user friendly.
- Yes: report it like that
- No: Report it using the
I'm thinking of something along the lines of github.com/pkg/errors used to do?
When I have some time I'm happy to look at the code and make a PR.
- Lingua principale
- Go
- Stelle
- 434
- Fork
- 74
- Merge medio
- 1g 30m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di canonical/chisel
-
`mode` of a generated directory is random when it has a generated childForse già presa @Amadeus-22 l’ha presa 24 giorni fa. ApertaBug
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
-
cut fails on uncompressed debForse già presa @yuminn-k l’ha presa 29 giorni fa. ApertaBug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 42/100
-
`prefer` drops a path when the preferred package lists it `until: mutate`Forse già presa @18Abhinav07 l’ha presa 8 giorni fa. ApertaBug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
Tutte le issue di canonical/chisel
Issue simili
-
mcpx scan: flag unsafe tool namesForse già presa @zeyadbadawyy l’ha presa oggi. Apertaarea/scan enhancement good first issue priority/medium size/small
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
rohitgollarahalli/mcpx#45 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Mend: dependency security vulnerability
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Windows 主机
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Lee-xeo/Claude-Cage#1550 ·
I maintainer di solito rispondono entro 1 giorno
-
(bug) ui: spanPaint can index spans past their end (panic: index out of range)Forse già presa @MaxMiksa l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100
I maintainer di solito rispondono entro 1 giorno