mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2025-01-02 20:19:36 +00:00
fix: custom Node DB path was never validated
introduced in 1.5.4
This commit is contained in:
parent
d2597db683
commit
8ff6ae9859
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue