@@ -176,7 +176,7 @@ static bool InitSettings()
176
176
if (!gArgs .ReadSettingsFile (&errors)) {
177
177
std::string error = QT_TRANSLATE_NOOP (" bitcoin-core" , " Settings file could not be read" );
178
178
std::string error_translated = QCoreApplication::translate (" bitcoin-core" , error.c_str ()).toStdString ();
179
- InitError (Untranslated (strprintf (" %s:\n %s\n " , error, MakeUnorderedList (errors))));
179
+ InitError (Untranslated (strprintf (" %s:\n %s" , error, MakeUnorderedList (errors))));
180
180
181
181
QMessageBox messagebox (QMessageBox::Critical, PACKAGE_NAME, QString::fromStdString (strprintf (" %s." , error_translated)), QMessageBox::Reset | QMessageBox::Abort);
182
182
/* : Explanatory text shown on startup when the settings file cannot be read.
@@ -199,7 +199,7 @@ static bool InitSettings()
199
199
if (!gArgs .WriteSettingsFile (&errors)) {
200
200
std::string error = QT_TRANSLATE_NOOP (" bitcoin-core" , " Settings file could not be written" );
201
201
std::string error_translated = QCoreApplication::translate (" bitcoin-core" , error.c_str ()).toStdString ();
202
- InitError (Untranslated (strprintf (" %s:\n %s\n " , error, MakeUnorderedList (errors))));
202
+ InitError (Untranslated (strprintf (" %s:\n %s" , error, MakeUnorderedList (errors))));
203
203
204
204
QMessageBox messagebox (QMessageBox::Critical, PACKAGE_NAME, QString::fromStdString (strprintf (" %s." , error_translated)), QMessageBox::Ok);
205
205
/* : Explanatory text shown on startup when the settings file could not be written.
@@ -546,7 +546,7 @@ int GuiMain(int argc, char* argv[])
546
546
SetupUIArgs (gArgs );
547
547
std::string error;
548
548
if (!gArgs .ParseParameters (argc, argv, error)) {
549
- InitError (strprintf (Untranslated (" Error parsing command line arguments: %s\n " ), error));
549
+ InitError (strprintf (Untranslated (" Error parsing command line arguments: %s" ), error));
550
550
// Create a message box, because the gui has neither been created nor has subscribed to core signals
551
551
QMessageBox::critical (nullptr , PACKAGE_NAME,
552
552
// message cannot be translated because translations have not been initialized
@@ -589,7 +589,7 @@ int GuiMain(int argc, char* argv[])
589
589
590
590
// / 6a. Determine availability of data directory
591
591
if (!CheckDataDirOption (gArgs )) {
592
- InitError (strprintf (Untranslated (" Specified data directory \" %s\" does not exist.\n " ), gArgs .GetArg (" -datadir" , " " )));
592
+ InitError (strprintf (Untranslated (" Specified data directory \" %s\" does not exist." ), gArgs .GetArg (" -datadir" , " " )));
593
593
QMessageBox::critical (nullptr , PACKAGE_NAME,
594
594
QObject::tr (" Error: Specified data directory \" %1\" does not exist." ).arg (QString::fromStdString (gArgs .GetArg (" -datadir" , " " ))));
595
595
return EXIT_FAILURE;
@@ -598,7 +598,7 @@ int GuiMain(int argc, char* argv[])
598
598
// / 6b. Parse bitcoin.conf
599
599
// / - Do not call gArgs.GetDataDirNet() before this step finishes
600
600
if (!gArgs .ReadConfigFiles (error, true )) {
601
- InitError (strprintf (Untranslated (" Error reading configuration file: %s\n " ), error));
601
+ InitError (strprintf (Untranslated (" Error reading configuration file: %s" ), error));
602
602
QMessageBox::critical (nullptr , PACKAGE_NAME,
603
603
QObject::tr (" Error: Cannot parse configuration file: %1." ).arg (QString::fromStdString (error)));
604
604
return EXIT_FAILURE;
@@ -613,7 +613,7 @@ int GuiMain(int argc, char* argv[])
613
613
// Check for chain settings (Params() calls are only valid after this clause)
614
614
SelectParams (gArgs .GetChainName ());
615
615
} catch (std::exception &e) {
616
- InitError (Untranslated (strprintf (" %s\n " , e.what ())));
616
+ InitError (Untranslated (strprintf (" %s" , e.what ())));
617
617
QMessageBox::critical (nullptr , PACKAGE_NAME, QObject::tr (" Error: %1" ).arg (e.what ()));
618
618
return EXIT_FAILURE;
619
619
}
0 commit comments