Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add message error instead utf8 panic error when running the update command #11

Open
Johjo opened this issue Sep 26, 2021 · 0 comments
Open
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Johjo
Copy link

Johjo commented Sep 26, 2021

Hello,

i try to use gpm and i fail on the command gpm update.

I get this error :

λ gpm update
 INFO  gpm::gpm::command::update > running the "update" command
Updating all repositories
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Custom { kind: InvalidData, error: "stream did not contain valid UTF-8" }', src\gpm\command\update.rs:39:42

I see in update.rs source that the file causing the error is source.list. I convert it to utf 8 and everything was OK.

Maybe can you add an error message instead letting rust panic ?

Thanks for your job and sorry for my english ;)

Jonathan

@JMLX42 JMLX42 added enhancement New feature or request help wanted Extra attention is needed labels Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants