Skip to content
This repository was archived by the owner on Feb 16, 2025. It is now read-only.

Commit 7b1e990

Browse files
committed
More logging
1 parent b6758db commit 7b1e990

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/server.rs

+4
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ async fn set_up_client(
115115
for entry_path in fs::read_dir(to_path.join("applications")).unwrap() {
116116
let path_buf = entry_path.unwrap().path();
117117
log::debug!("Looking at path: {:?}", path_buf);
118+
if !path_buf.exists() {
119+
log::warn!("Path {:?} doesn't exist!",path_buf);
120+
continue;
121+
}
118122
match read_to_string(&path_buf) {
119123
Ok(file_text) => {
120124
// run regex on it now

0 commit comments

Comments
 (0)