aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorBrandon Dahler <brandon.dahler@gmail.com>2014-03-23 20:14:43 -0500
committerWladimir J. van der Laan <laanwj@gmail.com>2014-03-31 09:51:58 +0200
commit2b7709dc84ed37128c125ca7a97b2e4b2c4437e7 (patch)
tree398d4f480d88291e7c3b73c193d31eb63cb9e6f4 /src/qt
parent5a2ed60a047cf9572814558000d7420f642021a2 (diff)
downloadbitcoin-2b7709dc84ed37128c125ca7a97b2e4b2c4437e7.tar.xz
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 <laanwj@gmail.com>
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/intro.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/intro.cpp b/src/qt/intro.cpp
index f342606495..3e99e941a6 100644
--- a/src/qt/intro.cpp
+++ b/src/qt/intro.cpp
@@ -178,7 +178,7 @@ void Intro::pickDataDirectory()
}
dataDir = intro.getDataDirectory();
try {
- fs::create_directory(GUIUtil::qstringToBoostPath(dataDir));
+ TryCreateDirectory(GUIUtil::qstringToBoostPath(dataDir));
break;
} catch(fs::filesystem_error &e) {
QMessageBox::critical(0, tr("Bitcoin"),