mygit

[UNMAINTAINED] A cgit/webgit alternative, written in Rust
Log | Files | Refs | README | LICENSE

commit 0f3d7230ad75458c1b046ba8caea30611b39f6f5
parent 22bc4250edcbc7bb4e7ce31801a2a5f937061ec8
Author: Johann150 <johann.galle@protonmail.com>
Date:   Sun, 14 Mar 2021 19:00:44 +0100

more descriptive error when config file missing

Diffstat:
Msrc/main.rs | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs @@ -257,7 +257,8 @@ async fn main() -> Result<(), std::io::Error> { // TODO cli - let toml_text = fs::read_to_string("mygit.toml")?; + let toml_text = + fs::read_to_string("mygit.toml").expect("expected configuration file mygit.toml"); let config: Config = toml::from_str(&toml_text)?; CONFIG.set(config).unwrap();