diff options
author | Adam <Adam@anope.org> | 2014-06-15 04:49:31 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-06-15 04:50:26 -0400 |
commit | 4f7868b1250fa02be825a193970bfb08e32e5d96 (patch) | |
tree | b898385303bdceb2b8a675c17c3b22fe5d6440fb /modules/database/db_flatfile.cpp | |
parent | 8066378471d5cecc5eeb3b9c2752fc684df33d50 (diff) |
Log more when unable to backup databases in db_flatfile
Diffstat (limited to 'modules/database/db_flatfile.cpp')
-rw-r--r-- | modules/database/db_flatfile.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/database/db_flatfile.cpp b/modules/database/db_flatfile.cpp index aa8f427ad..97c88a986 100644 --- a/modules/database/db_flatfile.cpp +++ b/modules/database/db_flatfile.cpp @@ -146,10 +146,14 @@ class DBFlatFile : public Module, public Pipe Log(LOG_DEBUG) << "db_flatfile: Attempting to rename " << *it << " to " << newname; if (rename(oldname.c_str(), newname.c_str())) { - Log(this) << "Unable to back up database " << *it << "!"; + Anope::string err = Anope::LastError(); + Log(this) << "Unable to back up database " << *it << " (" << err << ")!"; if (!Config->GetModule(this)->Get<bool>("nobackupok")) + { Anope::Quitting = true; + Anope::QuitReason = "Unable to back up database " + *it + " (" + err + ")"; + } continue; } |