@@ -456,7 +456,7 @@ int GuiMain(int argc, char* argv[])
456456 SetupUIArgs ();
457457 std::string error;
458458 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));
460460 // Create a message box, because the gui has neither been created nor has subscribed to core signals
461461 QMessageBox::critical (nullptr , PACKAGE_NAME,
462462 // message can not be translated because translations have not been initialized
@@ -496,13 +496,13 @@ int GuiMain(int argc, char* argv[])
496496 // / - Do not call GetDataDir(true) before this step finishes
497497 if (!fs::is_directory (GetDataDir (false )))
498498 {
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" , " " )));
500500 QMessageBox::critical (nullptr , PACKAGE_NAME,
501501 QObject::tr (" Error: Specified data directory \" %1\" does not exist." ).arg (QString::fromStdString (gArgs .GetArg (" -datadir" , " " ))));
502502 return EXIT_FAILURE;
503503 }
504504 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));
506506 QMessageBox::critical (nullptr , PACKAGE_NAME,
507507 QObject::tr (" Error: Cannot parse configuration file: %1." ).arg (QString::fromStdString (error)));
508508 return EXIT_FAILURE;
@@ -518,7 +518,7 @@ int GuiMain(int argc, char* argv[])
518518 try {
519519 node->selectParams (gArgs .GetChainName ());
520520 } catch (std::exception &e) {
521- InitError (strprintf (" %s\n " , e.what ()));
521+ node-> initError (strprintf (" %s\n " , e.what ()));
522522 QMessageBox::critical (nullptr , PACKAGE_NAME, QObject::tr (" Error: %1" ).arg (e.what ()));
523523 return EXIT_FAILURE;
524524 }
0 commit comments