diff options
| author | Brandon Dahler <[email protected]> | 2014-03-23 20:14:43 -0500 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-03-31 09:51:58 +0200 |
| commit | 2b7709dc84ed37128c125ca7a97b2e4b2c4437e7 (patch) | |
| tree | 398d4f480d88291e7c3b73c193d31eb63cb9e6f4 /src/db.cpp | |
| parent | Merge pull request #3987 from laanwj/2014_03_icreatemultisig (diff) | |
| download | discoin-2b7709dc84ed37128c125ca7a97b2e4b2c4437e7.tar.xz discoin-2b7709dc84ed37128c125ca7a97b2e4b2c4437e7.zip | |
Wrap create_directory calls in try...catch blocks.
Ignores any exceptions thrown if directory exists, otherwise re-throws exception.
Rebased-By: Wladimir J. van der Laan <[email protected]>
Diffstat (limited to 'src/db.cpp')
| -rw-r--r-- | src/db.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db.cpp b/src/db.cpp index 521562fe6..05cd657f1 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -72,7 +72,7 @@ bool CDBEnv::Open(const boost::filesystem::path& pathIn) path = pathIn; filesystem::path pathLogDir = path / "database"; - filesystem::create_directory(pathLogDir); + TryCreateDirectory(pathLogDir); filesystem::path pathErrorFile = path / "db.log"; LogPrintf("dbenv.open LogDir=%s ErrorFile=%s\n", pathLogDir.string(), pathErrorFile.string()); |