fix: custom Node DB path was never validated

introduced in 1.5.4
This commit is contained in:
Cyrix126 2024-12-15 16:50:57 +01:00
parent d2597db683
commit 8ff6ae9859

View file

@ -566,7 +566,7 @@ impl crate::app::App {
ProcessName::Node => { ProcessName::Node => {
// check path of DB valid, empty valid. // check path of DB valid, empty valid.
if !self.state.node.path_db.is_empty() if !self.state.node.path_db.is_empty()
&& !Gupax::path_is_file(&self.state.node.path_db) && !Gupax::path_is_dir(&self.state.node.path_db)
{ {
return Err(format!("Error: {}", NODE_DB_DIR)); return Err(format!("Error: {}", NODE_DB_DIR));
} }