You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Finished dev [unoptimized + debuginfo] target(s) in 0.13s
Running /home/folaht/testbot/devlohpmaq/target/debug/testbot
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })', src/main.rs:10:15
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
$strace target/debug/testbot
openat(AT_FDCWD, "cert.der", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
main.rs
...
let cfg = Config::load("/home/folaht/.config/testbot/config.toml").unwrap();
...
I'm a complete beginner in rust, so for two days I thought the error meant that it couldn't find the config.toml file.
It turns out it was the certification file that it couldn't find.
The text was updated successfully, but these errors were encountered:
Folaht
changed the title
I'm unable to load the config file.
Too generic error: "No such file or directory" when loading the config file.
May 28, 2020
Folaht
changed the title
Too generic error: "No such file or directory" when loading the config file.
Too generic error: "No such file or directory" when loading the config file...and a certificate file.
May 28, 2020
$cargo run
$strace target/debug/testbot
main.rs
I'm a complete beginner in rust, so for two days I thought the error meant that it couldn't find the config.toml file.
It turns out it was the certification file that it couldn't find.
The text was updated successfully, but these errors were encountered: