Skip to content

Commit

Permalink
check that source directory exists
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaboud committed Mar 24, 2021
1 parent 9afe4f0 commit 12ac6b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/impl/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ void Config::verify(const fs::path &config_path) const{
Logging::log.error("Config does not contain a search directory (Source Directory).");
errors = true;
}
if(!fs::exists(base_path_)){
Logging::log.error("Source Directory does not exist.");
errors = true;
}
if(!remote_user_.empty()){
Logging::log.warning("Remote User field is deprecated. Instead use `Destination = user@host:directory`.");
// just warning
Expand Down

0 comments on commit 12ac6b4

Please sign in to comment.