diff --git a/src/qt/intro.cpp b/src/qt/intro.cpp index f86b1670764..f966d2f8883 100644 --- a/src/qt/intro.cpp +++ b/src/qt/intro.cpp @@ -18,7 +18,9 @@ #include #include +#include #include +#include #include #include @@ -26,6 +28,7 @@ #include #include +#include /* Check free space asynchronously to prevent hanging the UI thread. @@ -221,8 +224,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 */