no exist on missing files

This commit is contained in:
jb-alvarado 2023-01-22 20:05:28 +01:00
parent 143085991d
commit 70c769b45d
2 changed files with 2 additions and 9 deletions

@ -1 +1 @@
Subproject commit 072002c68451a5e7e62046a72ddac1d4bae7fcea
Subproject commit 92c7a8b041c897fe9ed4819a61c500e61fc5318f

View File

@ -1,6 +1,5 @@
use std::{
path::Path,
process::exit,
sync::{
atomic::{AtomicUsize, Ordering},
{Arc, Mutex},
@ -46,11 +45,7 @@ impl FolderSource {
for path in &path_list {
if !Path::new(path).is_dir() {
error!(
"Path not exists: <b><magenta>{}</></b>",
path
);
exit(1);
error!("Path not exists: <b><magenta>{path}</></b>");
}
for entry in WalkDir::new(path.clone())
@ -70,8 +65,6 @@ impl FolderSource {
"no playable files found under: <b><magenta>{:?}</></b>",
path_list
);
exit(1);
}
if config.storage.shuffle {