mirror of
https://github.com/anope/anope.git
synced 2026-06-28 00:36:37 +02:00
Error out when db_json can't find the backup directory.
This commit is contained in:
@@ -190,7 +190,7 @@ private:
|
||||
return; // No backups.
|
||||
|
||||
auto backupdir = Anope::ExpandData(modconf.Get<Anope::string>("backup_directory", "backups"));
|
||||
if (!fs::is_directory(backupdir.str(), ec) && !ec)
|
||||
if (!fs::is_directory(backupdir.str(), ec))
|
||||
{
|
||||
fs::create_directories(backupdir.str(), ec);
|
||||
if (ec)
|
||||
|
||||
Reference in New Issue
Block a user