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.
$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.