DEV Community

[Comment from a deleted post]
Collapse
 
tux0r profile image
tux0r • Edited

I downloaded the .exe file from your current release, then I tried starting it from my PowerShell:

> .\onefetch.exe
thread 'main' panicked at 'Could not retrieve git configuration data', src\main.rs:183:19
note: Run with `RUST_BACKTRACE=1` for a backtrace.

I have no idea which kind of configuration data it needs (there's nothing in the README about this), but I guess this shouldn't happen anyway.

edit after reading your source code: So your software is limited to Git repositories? Why?

Collapse
 
o2sh profile image
o2sh

Correct, it only works with git repositories (for now). I rely on git to detect some of the project information (author(s), project name/url).

Sorry.

Collapse
 
tux0r profile image
tux0r

It still shouldn't crash. :-)

 
o2sh profile image
o2sh

You're right, I replaced the panic! with: exit(1) + message.

It fails more gracefully now.

 
tux0r profile image
tux0r

Hooray. (Thank you.)