diff options
| author | Wladimir J. van der Laan <[email protected]> | 2012-10-04 22:28:44 -0700 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2012-10-04 22:28:44 -0700 |
| commit | a6be58d536c46d2ee2328ed827cb26d35656fbee (patch) | |
| tree | 894552f03220838820cf7fd12c094f4bb9f24a07 /src | |
| parent | Merge pull request #1908 from laanwj/2012_10_rpcerrors (diff) | |
| parent | When datadir missing, show messagebox instead of printing error to stderr (diff) | |
| download | discoin-a6be58d536c46d2ee2328ed827cb26d35656fbee.tar.xz discoin-a6be58d536c46d2ee2328ed827cb26d35656fbee.zip | |
Merge pull request #1905 from laanwj/2012_10_startup_gui_error
When datadir missing, show messagebox instead of printing error to stderr
Diffstat (limited to 'src')
| -rw-r--r-- | src/qt/bitcoin.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index ad145fdf9..cd1764a53 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -132,7 +132,10 @@ int main(int argc, char *argv[]) // ... 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); |