@@ -456,7 +456,7 @@ int GuiMain(int argc, char* argv[])
456
456
SetupUIArgs ();
457
457
std::string error;
458
458
if (!node->parseParameters (argc, argv, error)) {
459
- InitError (strprintf (" Error parsing command line arguments: %s\n " , error));
459
+ node-> initError (strprintf (" Error parsing command line arguments: %s\n " , error));
460
460
// Create a message box, because the gui has neither been created nor has subscribed to core signals
461
461
QMessageBox::critical (nullptr , PACKAGE_NAME,
462
462
// message can not be translated because translations have not been initialized
@@ -496,13 +496,13 @@ int GuiMain(int argc, char* argv[])
496
496
// / - Do not call GetDataDir(true) before this step finishes
497
497
if (!fs::is_directory (GetDataDir (false )))
498
498
{
499
- InitError (strprintf (" Specified data directory \" %s\" does not exist.\n " , gArgs .GetArg (" -datadir" , " " )));
499
+ node-> initError (strprintf (" Specified data directory \" %s\" does not exist.\n " , gArgs .GetArg (" -datadir" , " " )));
500
500
QMessageBox::critical (nullptr , PACKAGE_NAME,
501
501
QObject::tr (" Error: Specified data directory \" %1\" does not exist." ).arg (QString::fromStdString (gArgs .GetArg (" -datadir" , " " ))));
502
502
return EXIT_FAILURE;
503
503
}
504
504
if (!node->readConfigFiles (error)) {
505
- InitError (strprintf (" Error reading configuration file: %s\n " , error));
505
+ node-> initError (strprintf (" Error reading configuration file: %s\n " , error));
506
506
QMessageBox::critical (nullptr , PACKAGE_NAME,
507
507
QObject::tr (" Error: Cannot parse configuration file: %1." ).arg (QString::fromStdString (error)));
508
508
return EXIT_FAILURE;
@@ -518,7 +518,7 @@ int GuiMain(int argc, char* argv[])
518
518
try {
519
519
node->selectParams (gArgs .GetChainName ());
520
520
} catch (std::exception &e) {
521
- InitError (strprintf (" %s\n " , e.what ()));
521
+ node-> initError (strprintf (" %s\n " , e.what ()));
522
522
QMessageBox::critical (nullptr , PACKAGE_NAME, QObject::tr (" Error: %1" ).arg (e.what ()));
523
523
return EXIT_FAILURE;
524
524
}
0 commit comments