mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2025-04-01 12:09:06 +00:00
fix: custom Node DB path was never validated
introduced in 1.5.4
This commit is contained in:
parent
2a4757fbcd
commit
93d9416aaf
1 changed files with 1 additions and 1 deletions
|
@ -566,7 +566,7 @@ impl crate::app::App {
|
|||
ProcessName::Node => {
|
||||
// check path of DB valid, empty valid.
|
||||
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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue