Skip to content

Commit

Permalink
canonicalize rpc-config path
Browse files Browse the repository at this point in the history
  • Loading branch information
nick1udwig committed Feb 8, 2025
1 parent c342995 commit f837852
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kinode/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ async fn main() {
.get_one::<u8>("verbosity")
.expect("verbosity required");
let rpc = matches.get_one::<String>("rpc");
let rpc_config = matches.get_one::<String>("rpc-config");
let rpc_config = matches.get_one::<String>("rpc-config")
.map(|p| std::fs::canonicalize(&p).expect(&format!("specified rpc-config path {p} not found")));
let password = matches.get_one::<String>("password");

// logging mode is toggled at runtime by CTRL+L
Expand Down

0 comments on commit f837852

Please sign in to comment.