Skip to content

Commit

Permalink
fix(build): don't display error for files in files
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Nov 25, 2024
1 parent 7555ff6 commit f3d4d15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/rari-doc/src/cached_readers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@ pub fn wiki_histories() -> Cow<'static, WikiHistories> {
error!("Error: reading translated content root: {e}");
})
.ok()
.filter(|dir| dir.path().is_dir())
.and_then(|dir| {
Locale::from_str(
dir.file_name()
Expand Down
1 change: 1 addition & 0 deletions crates/rari-doc/src/redirects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ static REDIRECTS: LazyLock<HashMap<String, String>> = LazyLock::new(|| {
error!("Error: reading translated content root: {e}");
})
.ok()
.filter(|dir| dir.path().is_dir())
.and_then(|dir| {
Locale::from_str(
dir.file_name()
Expand Down

0 comments on commit f3d4d15

Please sign in to comment.