Mercurial > hg > bitcoin
changeset 3593:07017e17c24f draft
Merge pull request #1905 from laanwj/2012_10_startup_gui_error
When datadir missing, show messagebox instead of printing error to stderr
author | Wladimir J. van der Laan <laanwj@gmail.com> |
---|---|
date | Thu, 04 Oct 2012 22:28:44 -0700 |
parents | f8915a550ace (current diff) 0b8b6e37651d (diff) |
children | cdfaf2102f75 5a7e013bf2e7 436609d4d581 e06aa97bd808 |
files | |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -132,7 +132,10 @@ // ... then bitcoin.conf: if (!boost::filesystem::is_directory(GetDataDir(false))) { - fprintf(stderr, "Error: Specified directory does not exist\n"); + // This message can not be translated, as translation is not initialized yet + // (which not yet possible because lang=XX can be overridden in bitcoin.conf in the data directory) + QMessageBox::critical(0, "Bitcoin", + QString("Error: Specified data directory \"%1\" does not exist.").arg(QString::fromStdString(mapArgs["-datadir"]))); return 1; } ReadConfigFile(mapArgs, mapMultiArgs);