diff --git a/src/qt/intro.cpp b/src/qt/intro.cpp index 91078b7cc1b..8b1813261c8 100644 --- a/src/qt/intro.cpp +++ b/src/qt/intro.cpp @@ -17,7 +17,9 @@ #include #include +#include #include +#include #include #include @@ -25,6 +27,7 @@ #include #include +#include namespace { //! Return pruning size that will be used if automatic pruning is enabled. @@ -138,8 +141,10 @@ bool Intro::showIfNeeded(bool& did_show_intro, int64_t& prune_MiB) /* Use selectParams here to guarantee Params() can be used by node interface */ try { SelectParams(gArgs.GetChainType()); - } catch (const std::exception&) { - return false; + } catch (const std::exception& e) { + InitError(Untranslated(e.what())); + QMessageBox::critical(nullptr, CLIENT_NAME, QObject::tr("Error: %1").arg(QString(e.what()))); + std::exit(EXIT_FAILURE); } /* If current default data directory does not exist, let the user choose one */